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/PreDestroycallbacks. Useful forInterceptorinstances 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()booleanhasPostConstructCallback()booleanhasPostConstructMethods()booleanhasPreDestroyMethods()voidpostConstruct(T instance, Instantiator<T> instantiator)voidpreDestroy(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:
postConstructin interfaceLifecycleCallbackInvoker<T>
-
preDestroy
public void preDestroy(T instance, Instantiator<T> instantiator)
- Specified by:
preDestroyin interfaceLifecycleCallbackInvoker<T>
-
hasPreDestroyMethods
public boolean hasPreDestroyMethods()
- Specified by:
hasPreDestroyMethodsin interfaceLifecycleCallbackInvoker<T>
-
hasPostConstructMethods
public boolean hasPostConstructMethods()
- Specified by:
hasPostConstructMethodsin interfaceLifecycleCallbackInvoker<T>
-
hasPostConstructCallback
public boolean hasPostConstructCallback()
- Specified by:
hasPostConstructCallbackin interfaceLifecycleCallbackInvoker<T>
-
-