public interface LifecycleListener
| 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
|
<T> void objectInjected(com.google.inject.TypeLiteral<T> type,
T obj)
type - object type being injectedobj - object being injected<T> void objectInjected(com.google.inject.TypeLiteral<T> type,
T obj,
long duration,
java.util.concurrent.TimeUnit units)
type - obj - duration - units - void stateChanged(java.lang.Object obj,
LifecycleState newState)
obj - the objectnewState - new state<T> void objectInjecting(com.google.inject.TypeLiteral<T> type)
type -