Class Overview
Simple MethodMatcher that looks for a specific Java 5 annotation
being present on a method (checking both the method on the invoked
interface, if any, and the corresponding method on the target class).
Summary
[Expand]
Inherited Methods |
From class
org.springframework.aop.support.StaticMethodMatcher
final
boolean
|
isRuntime()
Is this MethodMatcher dynamic, that is, must a final call be made on the
matches(java.lang.reflect.Method, Class, Object[]) method at
runtime even if the 2-arg matches method returns true ?
Can be invoked when an AOP proxy is created, and need not be invoked
again before each method invocation,
|
final
boolean
|
matches(Method method, Class<?> targetClass, Object[] args)
Check whether there a runtime (dynamic) match for this method,
which must have matched statically.
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
org.springframework.aop.MethodMatcher
abstract
boolean
|
isRuntime()
Is this MethodMatcher dynamic, that is, must a final call be made on the
matches(java.lang.reflect.Method, Class, Object[]) method at
runtime even if the 2-arg matches method returns true ?
Can be invoked when an AOP proxy is created, and need not be invoked
again before each method invocation,
|
abstract
boolean
|
matches(Method method, Class<?> targetClass)
Perform static checking whether the given method matches.
|
abstract
boolean
|
matches(Method method, Class<?> targetClass, Object[] args)
Check whether there a runtime (dynamic) match for this method,
which must have matched statically.
|
|
Public Constructors
public
AnnotationMethodMatcher
(Class<? extends Annotation> annotationType)
Create a new AnnotationClassFilter for the given annotation type.
Parameters
annotationType
| the annotation type to look for
|
Public Methods
public
boolean
matches
(Method method, Class targetClass)