Class InterceptorInvocationHandler
- java.lang.Object
-
- com.sun.ejb.containers.interceptors.InterceptorInvocationHandler
-
- All Implemented Interfaces:
InterceptorInvoker
,InvocationHandler
public final class InterceptorInvocationHandler extends Object implements InvocationHandler, InterceptorInvoker
- Author:
- Kenneth Saks
-
-
Constructor Summary
Constructors Constructor Description InterceptorInvocationHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object[]
getInterceptorInstances()
Object
getProxy()
Object
getTargetInstance()
void
init(Object targetInstance, Object[] interceptorInstances, Object clientProxy, InterceptorManager manager)
Object
invoke(Object proxy, Method method, Object[] args)
void
invokeAroundConstruct()
void
invokePostConstruct()
void
invokePreDestroy()
String
toString()
-
-
-
Method Detail
-
init
public void init(Object targetInstance, Object[] interceptorInstances, Object clientProxy, InterceptorManager manager)
-
getProxy
public Object getProxy()
- Specified by:
getProxy
in interfaceInterceptorInvoker
-
getTargetInstance
public Object getTargetInstance()
- Specified by:
getTargetInstance
in interfaceInterceptorInvoker
-
getInterceptorInstances
public Object[] getInterceptorInstances()
- Specified by:
getInterceptorInstances
in interfaceInterceptorInvoker
-
invokeAroundConstruct
public void invokeAroundConstruct() throws Exception
- Specified by:
invokeAroundConstruct
in interfaceInterceptorInvoker
- Throws:
Exception
-
invokePostConstruct
public void invokePostConstruct() throws Exception
- Specified by:
invokePostConstruct
in interfaceInterceptorInvoker
- Throws:
Exception
-
invokePreDestroy
public void invokePreDestroy() throws Exception
- Specified by:
invokePreDestroy
in interfaceInterceptorInvoker
- Throws:
Exception
-
invoke
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
- Specified by:
invoke
in interfaceInvocationHandler
- Throws:
Throwable
-
-