After a component has implemented ServiceListener, it should go on to implement Service, which extends ServiceListener. The Service interface exposes the various properties set by the ServiceListener interface:

public Nucleus getNucleus () { return nucleus; }
public Configuration getServiceConfiguration () { return configuration; }
public boolean isRunning () { return running; }

By implementing this interface, a component exposes these properties for inspection by the Nucleus administrator. The configuration property, for example, tells the administrator what properties files were used to configure the component. Your component does not actually need to do anything with the configuration property except remember it and return it when asked.


Copyright © 1997, 2016 Oracle and/or its affiliates. All rights reserved. Legal Notices