Class InterceptorManager
- java.lang.Object
-
- com.sun.ejb.containers.interceptors.InterceptorManager
-
public class InterceptorManager extends Object
UserInterceptorsManager manages UserInterceptors. There is one instance of InterceptorManager per container.- Author:
- Mahesh Kannan
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
InterceptorManager.AroundInvokeContext
static interface
InterceptorManager.InterceptorChain
-
Constructor Summary
Constructors Constructor Description InterceptorManager(Logger _logger, BaseContainer container, Class<?>[] lcAnnotationClasses, String[] pre30LCMethodNames)
InterceptorManager(Logger _logger, ClassLoader classLoader, String className, InterceptorInfo interceptorInfo)
-
Method Summary
-
-
-
Constructor Detail
-
InterceptorManager
public InterceptorManager(Logger _logger, BaseContainer container, Class<?>[] lcAnnotationClasses, String[] pre30LCMethodNames) throws Exception
- Throws:
Exception
-
InterceptorManager
public InterceptorManager(Logger _logger, ClassLoader classLoader, String className, InterceptorInfo interceptorInfo) throws Exception
- Throws:
Exception
-
-
Method Detail
-
createInterceptorInstances
public Object[] createInterceptorInstances()
-
getInterceptorClasses
public Class<?>[] getInterceptorClasses()
-
initializeInterceptorInstances
public void initializeInterceptorInstances(Object[] interceptorInstances)
-
registerRuntimeInterceptor
public void registerRuntimeInterceptor(Object o)
Called sometime after original interceptor initialization. Install the given interceptor class instance before any application level interceptors. param o instance of an interceptor class
-
getAroundInvokeChain
public InterceptorManager.InterceptorChain getAroundInvokeChain(MethodDescriptor mDesc, Method beanMethod)
-
getAroundTimeoutChain
public InterceptorManager.InterceptorChain getAroundTimeoutChain(MethodDescriptor mDesc, Method beanMethod)
-
hasInterceptors
public boolean hasInterceptors()
-
intercept
public Object intercept(InterceptorManager.InterceptorChain chain, InterceptorManager.AroundInvokeContext ctx) throws Throwable
- Throws:
Throwable
-
intercept
public boolean intercept(LifecycleCallbackDescriptor.CallbackType eventType, EJBContextImpl ctx) throws Throwable
- Throws:
Throwable
-
intercept
public boolean intercept(LifecycleCallbackDescriptor.CallbackType eventType, Object targetObject, Object[] interceptorInstances) throws Throwable
- Throws:
Throwable
-
intercept
public boolean intercept(LifecycleCallbackDescriptor.CallbackType eventType, Object targetObject, Object[] interceptorInstances, EJBContextImpl ctx) throws Throwable
- Throws:
Throwable
-
-