|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjfun.yan.lifecycle.Lifecycle
public class Lifecycle
This class represents the entire life-cycle for a component.
Zephyr Business Solution
| Nested Class Summary | |
|---|---|
static class |
Lifecycle.Entry
This class encapsulates the "what-to-do" information for a life-cycle phase. |
| Constructor Summary | |
|---|---|
Lifecycle()
|
|
| Method Summary | |
|---|---|
LiveObject |
bear(java.lang.Object obj)
To create a LiveObject for a regular Java object. |
java.util.Collection |
entries()
To get all the entries. |
Lifecycle.Entry |
get(java.lang.Object key)
To get a phase entry. |
boolean |
isEmpty()
Is any life-cycle phase defined at all? |
java.util.Set |
keys()
To get all the phase keys. |
void |
put(java.lang.Object key,
Procedure proc,
boolean reentrant)
To add a phase. |
void |
remove(java.lang.Object key)
To remove a phase definition. |
int |
size()
To get the number of phases defined. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Lifecycle()
| Method Detail |
|---|
public boolean isEmpty()
public int size()
public void put(java.lang.Object key,
Procedure proc,
boolean reentrant)
key - the key of the phase.proc - the procedure to invoke for the phase.reentrant - is the procedure re-entrant?public void remove(java.lang.Object key)
key - the key of the phase.public Lifecycle.Entry get(java.lang.Object key)
key - the key of the phase.
public java.util.Set keys()
public java.util.Collection entries()
public LiveObject bear(java.lang.Object obj)
LifeLiveObject for a regular Java object.
bear in interface Lifeobj - the regular java object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||