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.

loading table of contents...