public class LoggingLifeCycleListener extends java.lang.Object implements LifeCycleListener
| Constructor and Description |
|---|
LoggingLifeCycleListener() |
LoggingLifeCycleListener(java.util.logging.Logger log) |
| Modifier and Type | Method and Description |
|---|---|
void |
postConstructingInstance(java.lang.Object obj,
java.lang.reflect.Method postConstruct)
Called when a post construction method of an object is called
|
void |
preDestroyingInstance(java.lang.Object obj,
java.lang.reflect.Method preDestroy)
Called when a pre destruction method of an object is called
|
void |
startedLifeCycle()
Called when state changes from STARTING to STARTED
|
void |
startingInstance(java.lang.Object obj)
Called when post construction of an object starts
|
void |
startingLifeCycle()
Called when state changes from LATENT to STARTING
|
void |
stoppedLifeCycle()
Called when state changes from STOPPING to STOPPED
|
void |
stoppingInstance(java.lang.Object obj)
Called when pre destruction of an object starts
|
void |
stoppingLifeCycle()
Called when state changes from STARTED to STOPPING
|
public LoggingLifeCycleListener(java.util.logging.Logger log)
public LoggingLifeCycleListener()
public void startingLifeCycle()
LifeCycleListenerstartingLifeCycle in interface LifeCycleListenerpublic void startedLifeCycle()
LifeCycleListenerstartedLifeCycle in interface LifeCycleListenerpublic void stoppingLifeCycle()
LifeCycleListenerstoppingLifeCycle in interface LifeCycleListenerpublic void stoppedLifeCycle()
LifeCycleListenerstoppedLifeCycle in interface LifeCycleListenerpublic void startingInstance(java.lang.Object obj)
LifeCycleListenerstartingInstance in interface LifeCycleListenerobj - the object that will be constructedpublic void postConstructingInstance(java.lang.Object obj,
java.lang.reflect.Method postConstruct)
LifeCycleListenerpostConstructingInstance in interface LifeCycleListenerobj - the object that has PostConstruct methodpostConstruct - the Method object of the PostConstruct methodpublic void stoppingInstance(java.lang.Object obj)
LifeCycleListenerstoppingInstance in interface LifeCycleListenerobj - the object that will be destroyedpublic void preDestroyingInstance(java.lang.Object obj,
java.lang.reflect.Method preDestroy)
LifeCycleListenerpreDestroyingInstance in interface LifeCycleListenerobj - the object that has PreDestroy methodpreDestroy - the Method object of the PreDestroy method