T - public class NoopLifecycleCallbackInvoker<T> extends java.lang.Object implements LifecycleCallbackInvoker<T>
PostConstruct / PreDestroy callbacks. Useful for Interceptor
instances for example.| Modifier and Type | Field and Description |
|---|---|
static NoopLifecycleCallbackInvoker<java.lang.Object> |
INSTANCE |
| Constructor and Description |
|---|
NoopLifecycleCallbackInvoker() |
| Modifier and Type | Method and Description |
|---|---|
static <T> NoopLifecycleCallbackInvoker<T> |
getInstance() |
java.util.List<AnnotatedMethod<? super T>> |
getPostConstructMethods() |
java.util.List<AnnotatedMethod<? super T>> |
getPreDestroyMethods() |
boolean |
hasPostConstructMethods() |
boolean |
hasPreDestroyMethods() |
void |
postConstruct(T instance,
Instantiator<T> instantiator) |
void |
preDestroy(T instance,
Instantiator<T> instantiator) |
public static final NoopLifecycleCallbackInvoker<java.lang.Object> INSTANCE
public static <T> NoopLifecycleCallbackInvoker<T> getInstance()
public void postConstruct(T instance, Instantiator<T> instantiator)
postConstruct in interface LifecycleCallbackInvoker<T>public void preDestroy(T instance, Instantiator<T> instantiator)
preDestroy in interface LifecycleCallbackInvoker<T>public java.util.List<AnnotatedMethod<? super T>> getPreDestroyMethods()
public java.util.List<AnnotatedMethod<? super T>> getPostConstructMethods()
public boolean hasPreDestroyMethods()
hasPreDestroyMethods in interface LifecycleCallbackInvoker<T>public boolean hasPostConstructMethods()
hasPostConstructMethods in interface LifecycleCallbackInvoker<T>Copyright © 2014. All Rights Reserved.