Class NoopLifecycleCallbackInvoker<T>
- java.lang.Object
-
- org.jboss.weld.injection.producer.NoopLifecycleCallbackInvoker<T>
-
- Type Parameters:
T
-
- All Implemented Interfaces:
LifecycleCallbackInvoker<T>
public class NoopLifecycleCallbackInvoker<T> extends Object implements LifecycleCallbackInvoker<T>
This implementation never invokesPostConstruct
/PreDestroy
callbacks. Useful forInterceptor
instances for example.- Author:
- Jozef Hartinger
-
-
Field Summary
Fields Modifier and Type Field Description static NoopLifecycleCallbackInvoker<Object>
INSTANCE
-
Constructor Summary
Constructors Constructor Description NoopLifecycleCallbackInvoker()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> NoopLifecycleCallbackInvoker<T>
getInstance()
boolean
hasPostConstructCallback()
boolean
hasPostConstructMethods()
boolean
hasPreDestroyMethods()
void
postConstruct(T instance, Instantiator<T> instantiator)
void
preDestroy(T instance, Instantiator<T> instantiator)
-
-
-
Field Detail
-
INSTANCE
public static final NoopLifecycleCallbackInvoker<Object> INSTANCE
-
-
Method Detail
-
getInstance
public static <T> NoopLifecycleCallbackInvoker<T> getInstance()
-
postConstruct
public void postConstruct(T instance, Instantiator<T> instantiator)
- Specified by:
postConstruct
in interfaceLifecycleCallbackInvoker<T>
-
preDestroy
public void preDestroy(T instance, Instantiator<T> instantiator)
- Specified by:
preDestroy
in interfaceLifecycleCallbackInvoker<T>
-
hasPreDestroyMethods
public boolean hasPreDestroyMethods()
- Specified by:
hasPreDestroyMethods
in interfaceLifecycleCallbackInvoker<T>
-
hasPostConstructMethods
public boolean hasPostConstructMethods()
- Specified by:
hasPostConstructMethods
in interfaceLifecycleCallbackInvoker<T>
-
hasPostConstructCallback
public boolean hasPostConstructCallback()
- Specified by:
hasPostConstructCallback
in interfaceLifecycleCallbackInvoker<T>
-
-