Class NoopLifecycleCallbackInvoker<T>
java.lang.Object
org.jboss.weld.injection.producer.NoopLifecycleCallbackInvoker<T>
- Type Parameters:
T-
- All Implemented Interfaces:
LifecycleCallbackInvoker<T>
This implementation never invokes
PostConstruct / PreDestroy callbacks. Useful for Interceptor
instances for example.- Author:
- Jozef Hartinger
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> NoopLifecycleCallbackInvoker<T>booleanbooleanbooleanvoidpostConstruct(T instance, Instantiator<T> instantiator) voidpreDestroy(T instance, Instantiator<T> instantiator)
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
NoopLifecycleCallbackInvoker
public NoopLifecycleCallbackInvoker()
-
-
Method Details
-
getInstance
-
postConstruct
- Specified by:
postConstructin interfaceLifecycleCallbackInvoker<T>
-
preDestroy
- 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>
-