com.interface21.aop.framework
Class AlwaysInvoked

java.lang.Object
  |
  +--com.interface21.aop.framework.AlwaysInvoked
All Implemented Interfaces:
MethodPointcut

public class AlwaysInvoked
extends java.lang.Object
implements MethodPointcut

MethodPointcut implementation wrapping an Interceptor that should always run.

Since:
04-Apr-2003
Version:
$Revision: 1.2 $
Author:
Rod Johnson

Constructor Summary
AlwaysInvoked(org.aopalliance.MethodInterceptor interceptor)
           
 
Method Summary
 boolean applies(java.lang.reflect.Method m, java.lang.Object[] args, org.aopalliance.AttributeRegistry ar)
          Should the interceptor be invoked?
 org.aopalliance.MethodInterceptor getInterceptor()
          Return the interceptor to run conditionally
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlwaysInvoked

public AlwaysInvoked(org.aopalliance.MethodInterceptor interceptor)
Method Detail

getInterceptor

public org.aopalliance.MethodInterceptor getInterceptor()
Description copied from interface: MethodPointcut
Return the interceptor to run conditionally
Specified by:
getInterceptor in interface MethodPointcut
See Also:
MethodPointcut.getInterceptor()

applies

public boolean applies(java.lang.reflect.Method m,
                       java.lang.Object[] args,
                       org.aopalliance.AttributeRegistry ar)
Description copied from interface: MethodPointcut
Should the interceptor be invoked? This method is invoked before any interceptors have been invoked.
Specified by:
applies in interface MethodPointcut
See Also:
MethodPointcut.applies(java.lang.reflect.Method, java.lang.Object[], AttributeRegistry)


Rod Johnson and Spring contributors 2001-2003.