private class InstantiationModelAwarePointcutAdvisorImpl.PerTargetInstantiationModelPointcut extends DynamicMethodMatcherPointcut
| Modifier and Type | Field and Description |
|---|---|
private LazySingletonAspectInstanceFactoryDecorator |
aspectInstanceFactory |
private AspectJExpressionPointcut |
declaredPointcut |
private Pointcut |
preInstantiationPointcut |
TRUE| Modifier | Constructor and Description |
|---|---|
private |
PerTargetInstantiationModelPointcut(AspectJExpressionPointcut declaredPointcut,
Pointcut preInstantiationPointcut,
MetadataAwareAspectInstanceFactory aspectInstanceFactory) |
| Modifier and Type | Method and Description |
|---|---|
private boolean |
isAspectMaterialized() |
boolean |
matches(java.lang.reflect.Method method,
java.lang.Class<?> targetClass)
Can override to add preconditions for dynamic matching.
|
boolean |
matches(java.lang.reflect.Method method,
java.lang.Class<?> targetClass,
java.lang.Object... args)
Check whether there a runtime (dynamic) match for this method,
which must have matched statically.
|
getClassFilter, getMethodMatcherisRuntimeprivate final AspectJExpressionPointcut declaredPointcut
private final Pointcut preInstantiationPointcut
private LazySingletonAspectInstanceFactoryDecorator aspectInstanceFactory
private PerTargetInstantiationModelPointcut(AspectJExpressionPointcut declaredPointcut, Pointcut preInstantiationPointcut, MetadataAwareAspectInstanceFactory aspectInstanceFactory)
public boolean matches(java.lang.reflect.Method method,
java.lang.Class<?> targetClass)
DynamicMethodMatchermatches in interface MethodMatchermatches in class DynamicMethodMatchermethod - the candidate methodtargetClass - the target class (may be null, in which case
the candidate class must be taken to be the method's declaring class)public boolean matches(java.lang.reflect.Method method,
java.lang.Class<?> targetClass,
java.lang.Object... args)
MethodMatcherThis method is invoked only if the 2-arg matches method returns
true for the given method and target class, and if the
MethodMatcher.isRuntime() method returns true. Invoked
immediately before potential running of the advice, after any
advice earlier in the advice chain has run.
method - the candidate methodtargetClass - the target class (may be null, in which case
the candidate class must be taken to be the method's declaring class)args - arguments to the methodMethodMatcher.matches(Method, Class)private boolean isAspectMaterialized()