public class LoggingLifecycleListener extends DefaultLifecycleListener
| Constructor and Description |
|---|
LoggingLifecycleListener() |
| Modifier and Type | Method and Description |
|---|---|
<T> void |
objectInjected(com.google.inject.TypeLiteral<T> type,
T obj)
When Guice injects an object, this callback will be notified
|
<T> void |
objectInjected(com.google.inject.TypeLiteral<T> type,
T obj,
long duration,
java.util.concurrent.TimeUnit units)
Notification that an object has been injected and the amount of time it to either
construct or retrieve the object.
|
<T> void |
objectInjecting(com.google.inject.TypeLiteral<T> type)
Notification that an object is being injected.
|
void |
stateChanged(java.lang.Object obj,
LifecycleState newState)
Called when an object's lifecycle state changes
|
public <T> void objectInjected(com.google.inject.TypeLiteral<T> type,
T obj)
LifecycleListenerobjectInjected in interface LifecycleListenerobjectInjected in class DefaultLifecycleListenertype - object type being injectedobj - object being injectedpublic void stateChanged(java.lang.Object obj,
LifecycleState newState)
LifecycleListenerstateChanged in interface LifecycleListenerstateChanged in class DefaultLifecycleListenerobj - the objectnewState - new statepublic <T> void objectInjected(com.google.inject.TypeLiteral<T> type,
T obj,
long duration,
java.util.concurrent.TimeUnit units)
LifecycleListenerobjectInjected in interface LifecycleListenerobjectInjected in class DefaultLifecycleListenerpublic <T> void objectInjecting(com.google.inject.TypeLiteral<T> type)
LifecycleListenerobjectInjecting in interface LifecycleListenerobjectInjecting in class DefaultLifecycleListener