Top Description Constructors Methods
org.springframework.aop.support

public abstract Class DynamicMethodMatcher

extends Object
implements MethodMatcher
Class Inheritance
All Implemented Interfaces
org.springframework.aop.MethodMatcher
Known Direct Subclasses
org.springframework.aop.support.DynamicMethodMatcherPointcut
Imports
java.lang.reflect.Method, org.springframework.aop.MethodMatcher

Convenient abstract superclass for dynamic method matchers, which do care about arguments at runtime.
Author
Rod Johnson

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public final boolean
isRuntime()

Implements org.springframework.aop.MethodMatcher.isRuntime.

Is this MethodMatcher dynamic, that is, must a final check be made via the matches(Method, Class, Object[]) method at runtime even if matches(Method, Class) returns true?

public boolean
matches(Method
the candidate method
method
,
Class<?>
the target class
targetClass
)

Implements org.springframework.aop.MethodMatcher.matches.

Can override to add preconditions for dynamic matching.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DynamicMethodMatcherback to summary
public DynamicMethodMatcher()

Method Detail

isRuntimeback to summary
public final boolean isRuntime()

Implements org.springframework.aop.MethodMatcher.isRuntime.

Doc from org.springframework.aop.MethodMatcher.isRuntime.

Is this MethodMatcher dynamic, that is, must a final check be made via the matches(Method, Class, Object[]) method at runtime even if matches(Method, Class) returns true?

Can be invoked when an AOP proxy is created, and need not be invoked again before each method invocation.

Returns:boolean

whether a runtime match via matches(Method, Class, Object[]) is required if static matching passed

Annotations
@Override
matchesback to summary
public boolean matches(Method method, Class<?> targetClass)

Implements org.springframework.aop.MethodMatcher.matches.

Can override to add preconditions for dynamic matching. This implementation always returns true.

Parameters
method:Method

Doc from org.springframework.aop.MethodMatcher.matches.

the candidate method

targetClass:Class<?>

Doc from org.springframework.aop.MethodMatcher.matches.

the target class

Returns:boolean

Doc from org.springframework.aop.MethodMatcher.matches.

whether this method matches statically

Annotations
@Override