|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjfun.yan.lifecycle.LifecycleManager
public class LifecycleManager
This class manages life-cycle for component objects.
Zephyr Business Solution
| Constructor Summary | |
|---|---|
LifecycleManager()
|
|
| Method Summary | |
|---|---|
void |
addLiveObject(LiveObject lo)
Add a LiveObject into the lifecycle manager. |
void |
fifo(java.lang.Object key,
java.lang.Object[] args,
ExceptionHandler handler)
Invoke a certain phase for all managed instances in the creation order. |
void |
filo(java.lang.Object key,
java.lang.Object[] args,
ExceptionHandler handler)
Invoke a certain phase for all managed instances in the reverse order of creation. |
java.util.Set |
getManagedInstances()
To get the managed LiveObject instances. |
Component |
withLifecycle(Component c,
Life life)
To create a Component object that enables life-cycle support. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LifecycleManager()
| Method Detail |
|---|
public void addLiveObject(LiveObject lo)
lo - the LifeObject instance.
public Component withLifecycle(Component c,
Life life)
c - the Component to enable life-cycle support.life - the Life object.
public java.util.Set getManagedInstances()
LiveObject instances.
public void fifo(java.lang.Object key,
java.lang.Object[] args,
ExceptionHandler handler)
throws java.lang.Throwable
key - the key of the phase.args - the arguments passed to the phase procedure.handler - the exception handler.
java.lang.Throwable - when any error happens.
public void filo(java.lang.Object key,
java.lang.Object[] args,
ExceptionHandler handler)
throws java.lang.Throwable
key - the key of the phase.args - the arguments passed to the phase procedure.handler - the exception handler.
java.lang.Throwable - when any error happens.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||