com.interface21.aop.framework
Interface MethodPointcut
- All Known Implementing Classes:
- AlwaysInvoked
- public interface MethodPointcut
Interface to be implemented by objects that can cause
conditional invocation of an Interceptor depending on
the method, arguments and attributes passed.
- Since:
- 03-Apr-2003
- Version:
- $Revision: 1.1 $
- Author:
- Rod Johnson
|
Method Summary |
boolean |
applies(java.lang.reflect.Method m,
java.lang.Object[] args,
org.aopalliance.AttributeRegistry attributeRegistry)
Should the interceptor be invoked?
|
org.aopalliance.MethodInterceptor |
getInterceptor()
Return the interceptor to run conditionally |
getInterceptor
public org.aopalliance.MethodInterceptor getInterceptor()
- Return the interceptor to run conditionally
- Returns:
- MethodInterceptor
applies
public boolean applies(java.lang.reflect.Method m,
java.lang.Object[] args,
org.aopalliance.AttributeRegistry attributeRegistry)
- Should the interceptor be invoked?
This method is invoked before any interceptors have
been invoked.
- Parameters:
m - method being invokedargs - arguments to the methodattributeRegistry - registry of attributes.
Some implementations may wish to decide whether their
interceptor should be invoked based on the value of this object.- Returns:
- boolean whether the interceptor referenced
by this object should be invoked
Rod Johnson and Spring contributors 2001-2003.