T
- public class NoopLifecycleCallbackInvoker<T> extends Object implements LifecycleCallbackInvoker<T>
PostConstruct
/ PreDestroy
callbacks. Useful for Interceptor
instances for example.Modifier and Type | Field and Description |
---|---|
static NoopLifecycleCallbackInvoker<Object> |
INSTANCE |
Constructor and Description |
---|
NoopLifecycleCallbackInvoker() |
Modifier and Type | Method and Description |
---|---|
static <T> NoopLifecycleCallbackInvoker<T> |
getInstance() |
List<javax.enterprise.inject.spi.AnnotatedMethod<? super T>> |
getPostConstructMethods() |
List<javax.enterprise.inject.spi.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<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 List<javax.enterprise.inject.spi.AnnotatedMethod<? super T>> getPreDestroyMethods()
public List<javax.enterprise.inject.spi.AnnotatedMethod<? super T>> getPostConstructMethods()
public boolean hasPreDestroyMethods()
hasPreDestroyMethods
in interface LifecycleCallbackInvoker<T>
public boolean hasPostConstructMethods()
hasPostConstructMethods
in interface LifecycleCallbackInvoker<T>
Copyright © 2016. All rights reserved.