| |
|
| java.lang.Object biz.hammurapi.config.ComponentBase biz.hammurapi.config.ServiceBase
Method Summary | |
final public synchronized void | start() This implementation can be invoked multiple times. | abstract protected void | startInternal() Services shall implement initialization sequence in this method. | final public synchronized void | stop() Invokes stopInternal if all dependent services has been stopped.
Otherwise goes into "stoppable" state. | abstract protected void | stopInternal() |
start | final public synchronized void start() throws ConfigurationException(Code) | | This implementation can be invoked multiple times. ServiceBase class maintains internal started flag to ensure
that startInternal() method is invoked only once. The naming bus invokes this method every time before returning
service from get() method.
|
stop | final public synchronized void stop() throws ConfigurationException(Code) | | Invokes stopInternal if all dependent services has been stopped.
Otherwise goes into "stoppable" state. When stops, also stops all
stoppable previous services.
|
|
|
|