com.sun.ejb.containers.interceptors
Class InterceptorInvocationHandler

java.lang.Object
  extended by com.sun.ejb.containers.interceptors.InterceptorInvocationHandler
All Implemented Interfaces:
InterceptorInvoker, java.lang.reflect.InvocationHandler

public final class InterceptorInvocationHandler
extends java.lang.Object
implements java.lang.reflect.InvocationHandler, InterceptorInvoker

Author:
Kenneth Saks

Constructor Summary
InterceptorInvocationHandler()
           
 
Method Summary
 java.lang.Object[] getInterceptorInstances()
           
 java.lang.Object getProxy()
           
 java.lang.Object getTargetInstance()
           
 void init(java.lang.Object targetInstance, java.lang.Object[] interceptorInstances, java.lang.Object clientProxy, InterceptorManager manager)
           
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
           
 void invokePostConstruct()
           
 void invokePreDestroy()
           
 java.lang.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(java.lang.Object targetInstance,
                 java.lang.Object[] interceptorInstances,
                 java.lang.Object clientProxy,
                 InterceptorManager manager)

getProxy

public java.lang.Object getProxy()
Specified by:
getProxy in interface InterceptorInvoker

getTargetInstance

public java.lang.Object getTargetInstance()
Specified by:
getTargetInstance in interface InterceptorInvoker

getInterceptorInstances

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

invokePostConstruct

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

invokePreDestroy

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

invoke

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

toString

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


Copyright © 2012 GlassFish Community. All Rights Reserved.