|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.common.lifecycle.LifeCycleComponent
public class LifeCycleComponent
Takes care of the lifecycling of subcomponents(children). When extending this class you must:
super.start()
operation to start the children.
super.shutdown
operation to
Constructor Summary | |
---|---|
LifeCycleComponent()
|
Method Summary | |
---|---|
void |
addChild(ComponentLifeCycle childComponent)
Adds a child ComponentLifeCycle . |
void |
shutdown()
The inverse of the start() method. |
void |
start()
Implements functionality for starting an instances of this ComponentLifeCycle object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LifeCycleComponent()
Method Detail |
---|
public void start()
ComponentLifeCycle
ComponentLifeCycle
object.
This may be loading files, establish connections, initializing data,
starting threads, etc.
start
in interface ComponentLifeCycle
public void shutdown()
ComponentLifeCycle
start()
method. Contains functionality
for deallocation of ressources, clearing data, closing connections,
stopping threads, etc
shutdown
in interface ComponentLifeCycle
public void addChild(ComponentLifeCycle childComponent)
ComponentLifeCycle
. The childs lifecycle will
be managed by by the LifeCycleComponent
.
childComponent
- The child to add
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |