Note that there will be one instance of this advisor for each target method.
| Modifier and Type | Class and Description |
|---|---|
| private static class | InstantiationModelAwarePointcutAdvisorImpl.
Pointcut implementation that changes its behaviour when the advice is instantiated. |
| Modifier and Type | Field and Description |
|---|---|
| private final MetadataAwareAspectInstanceFactory | |
| private transient Method | |
| private final AspectJAdvisorFactory | |
| private final String | |
| private final int | |
| private final AspectJExpressionPointcut | |
| private final Class | |
| private static final Advice | |
| private Advice | |
| private Boolean | |
| private Boolean | |
| private final boolean | |
| private final String | |
| private final Class | |
| private final Pointcut |
| Access | Constructor and Description |
|---|---|
| public | InstantiationModelAwarePointcutAdvisorImpl(AspectJExpressionPointcut declaredPointcut, Method aspectJAdviceMethod, AspectJAdvisorFactory aspectJAdvisorFactory, MetadataAwareAspectInstanceFactory aspectInstanceFactory, int declarationOrder, String aspectName)
|
| Modifier and Type | Method and Description |
|---|---|
| private void | determineAdviceType()
Duplicates some logic from getAdvice, but importantly does not force creation of the advice. |
| public synchronized Advice | getAdvice()
Implements org. Lazily instantiate advice if necessary. |
| public MetadataAwareAspectInstanceFactory | |
| public AspectMetadata | |
| public String | getAspectName()
Implements org. Return the name of the aspect (bean) in which the advice was declared. |
| public int | getDeclarationOrder()
Implements org. Return the declaration order of the advice member within the aspect. |
| public AspectJExpressionPointcut | |
| public int | |
| public Pointcut | getPointcut()
Implements org. The pointcut for Spring AOP to use. |
| private Advice | |
| public synchronized boolean | isAdviceInstantiated()
Implements org. Return whether this advisor has already instantiated its advice. |
| public boolean | isAfterAdvice()
Implements org. Return whether this is an after advice. |
| public boolean | isBeforeAdvice()
Implements org. Return whether this is a before advice. |
| public boolean | isLazy()
Implements org. Return whether this advisor is lazily initializing its underlying advice. |
| public boolean | isPerInstance()
Overrides default org. This is only of interest for Spring AOP: AspectJ instantiation semantics are much richer. |
| private void | |
| public String |
| aspectInstanceFactory | back to summary |
|---|---|
| private final MetadataAwareAspectInstanceFactory aspectInstanceFactory | |
| aspectJAdviceMethod | back to summary |
|---|---|
| private transient Method aspectJAdviceMethod | |
| aspectJAdvisorFactory | back to summary |
|---|---|
| private final AspectJAdvisorFactory aspectJAdvisorFactory | |
| aspectName | back to summary |
|---|---|
| private final String aspectName | |
| declarationOrder | back to summary |
|---|---|
| private final int declarationOrder | |
| declaredPointcut | back to summary |
|---|---|
| private final AspectJExpressionPointcut declaredPointcut | |
| declaringClass | back to summary |
|---|---|
| private final Class<?> declaringClass | |
| EMPTY_ADVICE | back to summary |
|---|---|
| private static final Advice EMPTY_ADVICE | |
| instantiatedAdvice | back to summary |
|---|---|
| private Advice instantiatedAdvice
| |
| isAfterAdvice | back to summary |
|---|---|
| private Boolean isAfterAdvice
| |
| isBeforeAdvice | back to summary |
|---|---|
| private Boolean isBeforeAdvice
| |
| lazy | back to summary |
|---|---|
| private final boolean lazy | |
| methodName | back to summary |
|---|---|
| private final String methodName | |
| parameterTypes | back to summary |
|---|---|
| private final Class<?>[] parameterTypes | |
| pointcut | back to summary |
|---|---|
| private final Pointcut pointcut | |
| InstantiationModelAwarePointcutAdvisorImpl | back to summary |
|---|---|
| public InstantiationModelAwarePointcutAdvisorImpl(AspectJExpressionPointcut declaredPointcut, Method aspectJAdviceMethod, AspectJAdvisorFactory aspectJAdvisorFactory, MetadataAwareAspectInstanceFactory aspectInstanceFactory, int declarationOrder, String aspectName) | |
| determineAdviceType | back to summary |
|---|---|
| private void determineAdviceType() Duplicates some logic from getAdvice, but importantly does not force creation of the advice. | |
| getAdvice | back to summary |
|---|---|
| public synchronized Advice getAdvice() Implements org. Lazily instantiate advice if necessary.
| |
| getAspectInstanceFactory | back to summary |
|---|---|
| public MetadataAwareAspectInstanceFactory getAspectInstanceFactory() | |
| getAspectMetadata | back to summary |
|---|---|
| public AspectMetadata getAspectMetadata() Return the AspectJ AspectMetadata for this advisor. | |
| getAspectName | back to summary |
|---|---|
| public String getAspectName() Implements org. Doc from org. Return the name of the aspect (bean) in which the advice was declared.
| |
| getDeclarationOrder | back to summary |
|---|---|
| public int getDeclarationOrder() Implements org. Doc from org. Return the declaration order of the advice member within the aspect.
| |
| getDeclaredPointcut | back to summary |
|---|---|
| public AspectJExpressionPointcut getDeclaredPointcut() | |
| getOrder | back to summary |
|---|---|
| public int getOrder() Implements org. Doc from org. Get the order value of this object. Higher values are interpreted as lower priority. As a consequence,
the object with the lowest value has the highest priority (somewhat
analogous to Servlet Same order values will result in arbitrary sort positions for the affected objects.
| |
| getPointcut | back to summary |
|---|---|
| public Pointcut getPointcut() Implements org. The pointcut for Spring AOP to use. Actual behaviour of the pointcut will change depending on the state of the advice.
| |
| instantiateAdvice | back to summary |
|---|---|
| private Advice instantiateAdvice(AspectJExpressionPointcut pointcut) | |
| isAdviceInstantiated | back to summary |
|---|---|
| public synchronized boolean isAdviceInstantiated() Implements org. Doc from org. Return whether this advisor has already instantiated its advice.
| |
| isAfterAdvice | back to summary |
|---|---|
| public boolean isAfterAdvice() Implements org. Doc from org. Return whether this is an after advice.
| |
| isBeforeAdvice | back to summary |
|---|---|
| public boolean isBeforeAdvice() Implements org. Doc from org. Return whether this is a before advice.
| |
| isLazy | back to summary |
|---|---|
| public boolean isLazy() Implements org. Doc from org. Return whether this advisor is lazily initializing its underlying advice.
| |
| isPerInstance | back to summary |
|---|---|
| public boolean isPerInstance() Overrides default org. This is only of interest for Spring AOP: AspectJ instantiation semantics
are much richer. In AspectJ terminology, all a return of
| |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream inputStream) throws IOException, ClassNotFoundException | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| Modifier and Type | Field and Description |
|---|---|
| private LazySingletonAspectInstanceFactoryDecorator | |
| private final AspectJExpressionPointcut | |
| private final Pointcut |
| Access | Constructor and Description |
|---|---|
| public | PerTargetInstantiationModelPointcut(AspectJExpressionPointcut declaredPointcut, Pointcut preInstantiationPointcut, MetadataAwareAspectInstanceFactory aspectInstanceFactory)
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. Indicates whether some other object is "equal to" this one. |
| public int | |
| private boolean | |
| public boolean | matches(Method
the candidate method method, Class<?> the target class targetClass)Overrides org. Implements org. Can override to add preconditions for dynamic matching. |
| public boolean | matches(Method
the candidate method method, Class<?> the target class targetClass, Object... arguments to the method args)Implements org. Check whether there is a runtime (dynamic) match for this method, which must have matched statically. |
| public String |
| aspectInstanceFactory | back to summary |
|---|---|
| private LazySingletonAspectInstanceFactoryDecorator aspectInstanceFactory
| |
| declaredPointcut | back to summary |
|---|---|
| private final AspectJExpressionPointcut declaredPointcut | |
| preInstantiationPointcut | back to summary |
|---|---|
| private final Pointcut preInstantiationPointcut | |
| PerTargetInstantiationModelPointcut | back to summary |
|---|---|
| public PerTargetInstantiationModelPointcut(AspectJExpressionPointcut declaredPointcut, Pointcut preInstantiationPointcut, MetadataAwareAspectInstanceFactory aspectInstanceFactory) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isAspectMaterialized | back to summary |
|---|---|
| private boolean isAspectMaterialized() | |
| matches | back to summary |
|---|---|
| public boolean matches(Method method, Class<?> targetClass) Overrides org. Implements org. Doc from org. Can override to add preconditions for dynamic matching. This implementation always returns true.
| |
| matches | back to summary |
|---|---|
| public boolean matches(Method method, Class<?> targetClass, Object... args) Implements org. Doc from org. Check whether there is a runtime (dynamic) match for this method, which must have matched statically. This method is invoked only if Invoked immediately before potential running of the advice, after any advice earlier in the advice chain has run. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |