com.sun.ejb.containers.interceptors
Class InterceptorManager

java.lang.Object
  extended by com.sun.ejb.containers.interceptors.InterceptorManager

public class InterceptorManager
extends java.lang.Object

UserInterceptorsManager manages UserInterceptors. There is one instance of InterceptorManager per container.

Author:
Mahesh Kannan

Nested Class Summary
static interface InterceptorManager.AroundInvokeContext
           
static interface InterceptorManager.InterceptorChain
           
 
Constructor Summary
InterceptorManager(java.util.logging.Logger _logger, BaseContainer container, java.lang.Class[] lcAnnotationClasses, java.lang.String[] pre30LCMethodNames)
           
InterceptorManager(java.util.logging.Logger _logger, java.lang.ClassLoader classLoader, java.lang.String className, InterceptorInfo interceptorInfo)
           
 
Method Summary
 java.lang.Object[] createInterceptorInstances()
           
 InterceptorManager.InterceptorChain getAroundInvokeChain(MethodDescriptor mDesc, java.lang.reflect.Method beanMethod)
           
 InterceptorManager.InterceptorChain getAroundTimeoutChain(MethodDescriptor mDesc, java.lang.reflect.Method beanMethod)
           
 java.lang.Class[] getInterceptorClasses()
           
 boolean hasInterceptors()
           
 void initializeInterceptorInstances(java.lang.Object[] interceptorInstances)
           
 java.lang.Object intercept(InterceptorManager.InterceptorChain chain, InterceptorManager.AroundInvokeContext ctx)
           
 boolean intercept(LifecycleCallbackDescriptor.CallbackType eventType, EJBContextImpl ctx)
           
 boolean intercept(LifecycleCallbackDescriptor.CallbackType eventType, java.lang.Object targetObject, java.lang.Object[] interceptorInstances)
           
 void registerRuntimeInterceptor(java.lang.Object o)
          Called sometime after original interceptor initialization.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InterceptorManager

public InterceptorManager(java.util.logging.Logger _logger,
                          BaseContainer container,
                          java.lang.Class[] lcAnnotationClasses,
                          java.lang.String[] pre30LCMethodNames)
                   throws java.lang.Exception
Throws:
java.lang.Exception

InterceptorManager

public InterceptorManager(java.util.logging.Logger _logger,
                          java.lang.ClassLoader classLoader,
                          java.lang.String className,
                          InterceptorInfo interceptorInfo)
                   throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

createInterceptorInstances

public java.lang.Object[] createInterceptorInstances()

getInterceptorClasses

public java.lang.Class[] getInterceptorClasses()

initializeInterceptorInstances

public void initializeInterceptorInstances(java.lang.Object[] interceptorInstances)

registerRuntimeInterceptor

public void registerRuntimeInterceptor(java.lang.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,
                                                                java.lang.reflect.Method beanMethod)

getAroundTimeoutChain

public InterceptorManager.InterceptorChain getAroundTimeoutChain(MethodDescriptor mDesc,
                                                                 java.lang.reflect.Method beanMethod)

hasInterceptors

public boolean hasInterceptors()

intercept

public java.lang.Object intercept(InterceptorManager.InterceptorChain chain,
                                  InterceptorManager.AroundInvokeContext ctx)
                           throws java.lang.Throwable
Throws:
java.lang.Throwable

intercept

public boolean intercept(LifecycleCallbackDescriptor.CallbackType eventType,
                         EJBContextImpl ctx)
                  throws java.lang.Throwable
Throws:
java.lang.Throwable

intercept

public boolean intercept(LifecycleCallbackDescriptor.CallbackType eventType,
                         java.lang.Object targetObject,
                         java.lang.Object[] interceptorInstances)
                  throws java.lang.Throwable
Throws:
java.lang.Throwable

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2012 GlassFish Community. All Rights Reserved.