|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sourceforge.jemm.lifecycle.ConstructorLifecycle
public final class ConstructorLifecycle
A class with only static methods which enhanced objects can use to pass on events on object creation. Any attached listeners will receive begin and end events for the constructor.
Method Summary | |
---|---|
static void |
addListener(ConstructorListener cl)
Adds a new listener to the chain of called listeners. |
static void |
beginConstructor(JEMMObject source)
triggers the event for begin. |
static void |
clearListeners()
Removes any existing listeners. |
static void |
endConstructor(JEMMObject source)
Triggers the end event. |
static void |
failedConstructor(JEMMObject source)
Triggers the failed construction event. |
static void |
preConstructor(java.lang.String clazz)
triggers the event for begin. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void clearListeners()
public static void addListener(ConstructorListener cl)
cl
- public static void preConstructor(java.lang.String clazz)
source
- The object from which the event is comingpublic static void beginConstructor(JEMMObject source)
source
- The object from which the event is comingpublic static void endConstructor(JEMMObject source)
source
- The object from which the event is comingpublic static void failedConstructor(JEMMObject source)
source
- The object from which the event is coming
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |