com.sun.ejb.containers.interceptors
Class InterceptorInvocationHandler

java.lang.Object
  extended by 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
InterceptorInvocationHandler()
           
 
Method Summary
 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 invokePostConstruct()
           
 void invokePreDestroy()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InterceptorInvocationHandler

public InterceptorInvocationHandler()
Method Detail

init

public void init(Object targetInstance,
                 Object[] interceptorInstances,
                 Object clientProxy,
                 InterceptorManager manager)

getProxy

public Object getProxy()
Specified by:
getProxy in interface InterceptorInvoker

getTargetInstance

public Object getTargetInstance()
Specified by:
getTargetInstance in interface InterceptorInvoker

getInterceptorInstances

public Object[] getInterceptorInstances()
Specified by:
getInterceptorInstances in interface InterceptorInvoker

invokePostConstruct

public void invokePostConstruct()
                         throws Exception
Specified by:
invokePostConstruct in interface InterceptorInvoker
Throws:
Exception

invokePreDestroy

public void invokePreDestroy()
                      throws Exception
Specified by:
invokePreDestroy in interface InterceptorInvoker
Throws:
Exception

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Throws:
Throwable

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012 GlassFish Community. All Rights Reserved.