org.springframework.aop.aspectj.annotation
class: InstantiationModelAwarePointcutAdvisorImpl.PerTargetInstantiationModelPointcut [javadoc |
source]
java.lang.Object
org.springframework.aop.support.DynamicMethodMatcher
org.springframework.aop.support.DynamicMethodMatcherPointcut
org.springframework.aop.aspectj.annotation.InstantiationModelAwarePointcutAdvisorImpl$PerTargetInstantiationModelPointcut
All Implemented Interfaces:
Pointcut, MethodMatcher
Pointcut implementation that changes its behaviour when the advice is instantiated.
Note that this is a
dynamic pointcut. Otherwise it might
be optimized out if it does not at first match statically.
| Method from org.springframework.aop.aspectj.annotation.InstantiationModelAwarePointcutAdvisorImpl$PerTargetInstantiationModelPointcut Summary: |
|---|
|
matches, matches |
| Methods from org.springframework.aop.support.DynamicMethodMatcher: |
|---|
|
isRuntime, matches |
| Method from org.springframework.aop.aspectj.annotation.InstantiationModelAwarePointcutAdvisorImpl$PerTargetInstantiationModelPointcut Detail: |
public boolean matches(Method method,
Class targetClass) {
// We're either instantiated and matching on declared pointcut, or uninstantiated matching on either pointcut
return (isAspectMaterialized() && this.declaredPointcut.matches(method, targetClass)) ||
this.preInstantiationPointcut.getMethodMatcher().matches(method, targetClass);
}
|
public boolean matches(Method method,
Class targetClass,
Object[] args) {
// This can match only on declared pointcut.
return (isAspectMaterialized() && this.declaredPointcut.matches(method, targetClass));
}
|