|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.ref.Reference<T>
java.lang.ref.WeakReference
jfun.util.WeakRef
jfun.yan.lifecycle.LiveObject
public class LiveObject
This class encapsulates life-cycle information for a regular Java object.
Zephyr Business Solution
| Constructor Summary | |
|---|---|
LiveObject(java.lang.Object obj,
java.util.Map procs)
To create a LiveObject for a regular java object. |
|
| Method Summary | |
|---|---|
boolean |
containsPhase(java.lang.Object key)
To determine if a certain phase exists in the life-cycle. |
Procedure |
getProc(java.lang.Object key)
Get the Procedure for a certain phase. |
void |
invoke(java.lang.Object key,
java.lang.Object[] args)
To invoke the procedure for a certain phase. |
| Methods inherited from class jfun.util.WeakRef |
|---|
equals, hashCode |
| Methods inherited from class java.lang.ref.Reference |
|---|
clear, enqueue, get, isEnqueued |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LiveObject(java.lang.Object obj,
java.util.Map procs)
obj - the regular java object.procs - the map from phase key to Procedure objects.| Method Detail |
|---|
public boolean containsPhase(java.lang.Object key)
key - the key of the phase.
public Procedure getProc(java.lang.Object key)
Procedure for a certain phase.
key - the key of the phase.
public void invoke(java.lang.Object key,
java.lang.Object[] args)
throws java.lang.Throwable
key - the key of the phase.args - the arguments to the procedure.
java.lang.Throwable - any exception thrown out of the procedure.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||