org.jboss.ejb3.interceptors.aop
Class LifecycleCallbacks
java.lang.Object
org.jboss.ejb3.interceptors.aop.LifecycleCallbacks
public class LifecycleCallbacks
- extends java.lang.Object
The common logic for lifecycle callbacks.
|
Method Summary |
static org.jboss.aop.advice.Interceptor[] |
createLifecycleCallbackInterceptors(org.jboss.aop.Advisor advisor,
java.util.List<java.lang.Class<?>> lifecycleInterceptorClasses,
BeanContext<?> component,
java.lang.Class<? extends java.lang.annotation.Annotation> lifecycleAnnotationType)
Deprecated. Use createLifecycleCallbackInterceptors(Advisor, List, Class) instead |
static org.jboss.aop.advice.Interceptor[] |
createLifecycleCallbackInterceptors(org.jboss.aop.Advisor advisor,
java.util.List<java.lang.Class<?>> lifecycleInterceptorClasses,
java.lang.Class<? extends java.lang.annotation.Annotation> lifecycleAnnotationType)
Creates an AOP interceptor chain for the lifecycle represented by
the lifecycleAnnotationType. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LifecycleCallbacks
public LifecycleCallbacks()
createLifecycleCallbackInterceptors
@Deprecated
public static org.jboss.aop.advice.Interceptor[] createLifecycleCallbackInterceptors(org.jboss.aop.Advisor advisor,
java.util.List<java.lang.Class<?>> lifecycleInterceptorClasses,
BeanContext<?> component,
java.lang.Class<? extends java.lang.annotation.Annotation> lifecycleAnnotationType)
throws java.lang.Exception
- Deprecated. Use
createLifecycleCallbackInterceptors(Advisor, List, Class) instead
- Parameters:
advisor - lifecycleInterceptorClasses - component - lifecycleAnnotationType -
- Returns:
-
- Throws:
java.lang.Exception
createLifecycleCallbackInterceptors
public static org.jboss.aop.advice.Interceptor[] createLifecycleCallbackInterceptors(org.jboss.aop.Advisor advisor,
java.util.List<java.lang.Class<?>> lifecycleInterceptorClasses,
java.lang.Class<? extends java.lang.annotation.Annotation> lifecycleAnnotationType)
- Creates an AOP interceptor chain for the lifecycle represented by
the
lifecycleAnnotationType.
Internally, the AOP interceptor chain consists of the LifecycleCallback AOP stack
interceptors, the javax.interceptor.Interceptor(s) and the lifecycle methods on the bean
implementation class
- Parameters:
advisor - The bean class advisorlifecycleInterceptorClasses - The lifecycle interceptor classes associated with the beanlifecycleAnnotationType - The lifecycle annotation (ex: @PostConstruct, @PrePassivate and
other similar lifecycle types).
- Returns:
- Returns an empty array if there are no interceptors corresponding to the bean for
the
lifecycleAnnotationType. Else returns the applicable interceptors