|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sourceforge.jemm.client.LifecycleListenerImpl
public class LifecycleListenerImpl
A lifecycle listener which manages the state of the JEMMObject, such as the object values, the JEMM ID and the ShadowObject.
Hierarchy of class constructors ------------------------------- pre - stack the class super -> pre - stack the class super begin - associated the the object with stacked class end/fail begin end/fail --- END/FAIL ALGORITHM pop if(peek is a class in the hierarchy of current OBJ AND has no object) do nothing else //must be a different object on the stack synchronize --- Nested Construction of objects ------------------------------ pre super begin pre begin end/fail end/fail
Constructor Summary | |
---|---|
LifecycleListenerImpl(ObjectDatabase db,
StackTracer st,
LockTracer lt)
|
Method Summary | |
---|---|
void |
beginConstructor(LifecycleEvent e)
Register the class of the object. |
void |
beginLock(LockEvent e)
Acquire a lock in the database |
void |
endConstructor(LifecycleEvent e)
Synchronise the state of the Object with the database and clear any object fields of their values into the ShadowData. |
void |
endLock(LockEvent e)
Release a lock in the database |
void |
entityEntered(MethodEvent e)
Register the class Setup the required object fields that will be used by the method if it is the first time a method is entered. |
void |
entityExited(MethodEvent e)
Captures the object state and saves it. |
void |
failedConstruction(LifecycleEvent e)
Removes the context for the constructor from the stack. |
void |
preConstructor(java.lang.String className)
Called before the call to super(). |
void |
setObjectCreator(JEMMObjectCreator creator)
|
void |
typeConstructed(JEMMType typeInstance)
Notification by a type instance that it has been created via the user 'new' method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LifecycleListenerImpl(ObjectDatabase db, StackTracer st, LockTracer lt)
Method Detail |
---|
public void preConstructor(java.lang.String className)
ConstructorListener
preConstructor
in interface ConstructorListener
className
- The name of the class from which the call is being calledpublic void beginConstructor(LifecycleEvent e)
beginConstructor
in interface ConstructorListener
e
- The eventpublic void setObjectCreator(JEMMObjectCreator creator)
public void typeConstructed(JEMMType typeInstance)
TypeConstructorListener
typeConstructed
in interface TypeConstructorListener
typeInstance
- The instance that has been created.public void failedConstruction(LifecycleEvent e)
failedConstruction
in interface ConstructorListener
public void endConstructor(LifecycleEvent e)
endConstructor
in interface ConstructorListener
e
- The eventpublic void beginLock(LockEvent e)
beginLock
in interface MethodListener
public void endLock(LockEvent e)
endLock
in interface MethodListener
public void entityEntered(MethodEvent e)
entityEntered
in interface MethodListener
e
- The eventpublic void entityExited(MethodEvent e)
entityExited
in interface MethodListener
e
- The event
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |