|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbiz.hammurapi.config.ComponentBase
biz.hammurapi.config.ServiceBase
public abstract class ServiceBase
| Field Summary |
|---|
| Fields inherited from class biz.hammurapi.config.ComponentBase |
|---|
owner |
| Constructor Summary | |
|---|---|
ServiceBase()
|
|
| Method Summary | |
|---|---|
void |
start()
This implementation can be invoked multiple times. |
protected abstract void |
startInternal()
Services shall implement initialization sequence in this method. |
void |
stop()
Invokes stopInternal if all dependent services has been stopped. |
protected abstract void |
stopInternal()
|
| Methods inherited from class biz.hammurapi.config.ComponentBase |
|---|
addMeasurement, get, getChild, getMeasurementConsumer, getOwner, getOwner, setMeasurementConsumer, setOwner |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface biz.hammurapi.config.Component |
|---|
setOwner |
| Constructor Detail |
|---|
public ServiceBase()
| Method Detail |
|---|
protected abstract void startInternal()
throws ConfigurationException
ConfigurationException
public final void start()
throws ConfigurationException
start in interface ComponentConfigurationException
protected abstract void stopInternal()
throws ConfigurationException
ConfigurationException
public final void stop()
throws ConfigurationException
stop in interface ComponentConfigurationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||