public class DefaultLifecycleListener extends java.lang.Object implements LifecycleListener
| Constructor and Description |
|---|
DefaultLifecycleListener() |
| 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 LifecycleListenertype - object type being injectedobj - object being injectedpublic <T> void objectInjected(com.google.inject.TypeLiteral<T> type,
T obj,
long duration,
java.util.concurrent.TimeUnit units)
LifecycleListenerobjectInjected in interface LifecycleListenerpublic void stateChanged(java.lang.Object obj,
LifecycleState newState)
LifecycleListenerstateChanged in interface LifecycleListenerobj - the objectnewState - new statepublic <T> void objectInjecting(com.google.inject.TypeLiteral<T> type)
LifecycleListenerobjectInjecting in interface LifecycleListener