com.interface21.aop.framework
Class InvokerInterceptor

java.lang.Object
  |
  +--com.interface21.aop.framework.InvokerInterceptor
All Implemented Interfaces:
org.aopalliance.Interceptor, org.aopalliance.MethodInterceptor, org.aopalliance.ProxyInterceptor

public class InvokerInterceptor
extends java.lang.Object
implements org.aopalliance.MethodInterceptor, org.aopalliance.ProxyInterceptor

Implementation of Interceptor interface that invokes a local target object using reflection. This is always a final interceptor. It's the only interceptor in the ****

Author:
Rod Johnson

Constructor Summary
InvokerInterceptor()
           
InvokerInterceptor(java.lang.Object target)
           
 
Method Summary
 java.lang.Object getTarget()
           
 java.lang.Object invoke(org.aopalliance.MethodInvocation invocation)
           
 void setTarget(java.lang.Object target)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InvokerInterceptor

public InvokerInterceptor()

InvokerInterceptor

public InvokerInterceptor(java.lang.Object target)
Method Detail

setTarget

public void setTarget(java.lang.Object target)

getTarget

public java.lang.Object getTarget()
Specified by:
getTarget in interface org.aopalliance.ProxyInterceptor
See Also:
ProxyInterceptor.getTarget()

invoke

public java.lang.Object invoke(org.aopalliance.MethodInvocation invocation)
                        throws java.lang.Throwable
Specified by:
invoke in interface org.aopalliance.MethodInterceptor
See Also:
Interceptor#invoke(Invocation)


Rod Johnson and Spring contributors 2001-2003.