Class DefaultLifecycleCallbackInvoker<T>
java.lang.Object
org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker<T>
- Type Parameters:
T-
- All Implemented Interfaces:
LifecycleCallbackInvoker<T>
public class DefaultLifecycleCallbackInvoker<T>
extends Object
implements LifecycleCallbackInvoker<T>
If the component is not intercepted this implementation takes care of invoking its lifecycle callback methods. If the
component is interception,
PostConstruct / PreDestroy invocation is delegated to the intercepting proxy.- Author:
- Jozef Hartinger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanstatic <T> DefaultLifecycleCallbackInvoker<T>of(EnhancedAnnotatedType<T> type) voidpostConstruct(T instance, Instantiator<T> instantiator) voidpreDestroy(T instance, Instantiator<T> instantiator) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.weld.injection.producer.LifecycleCallbackInvoker
hasPostConstructCallback
-
Constructor Details
-
DefaultLifecycleCallbackInvoker
-
-
Method Details
-
of
-
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>
-