Spring AOP is based around around advice delivered via method interception, compliant with the AOP Alliance interception API. The Advisor interface allows support for different types of advice, such as before and after advice, which need not be implemented using interception.
| Modifier and Type | Field and Description |
|---|---|
| public static final Advice | EMPTY_ADVICE
Common placeholder for an empty |
| Modifier and Type | Method and Description |
|---|---|
| public Advice | Returns: the advice that should apply if the pointcut matchesReturn the advice part of this aspect. |
| public default boolean | Returns: whether this advice is associated with a particular target instanceReturn whether this advice is associated with a particular instance (for example, creating a mixin) or shared with all instances of the advised class obtained from the same Spring bean factory. |
| EMPTY_ADVICE | back to summary |
|---|---|
| public static final Advice EMPTY_ADVICE Common placeholder for an empty
| |
| getAdvice | back to summary |
|---|---|
| public Advice getAdvice() Return the advice part of this aspect. An advice may be an interceptor, a before advice, a throws advice, etc.
| |
| isPerInstance | back to summary |
|---|---|
| public default boolean isPerInstance() Return whether this advice is associated with a particular instance (for example, creating a mixin) or shared with all instances of the advised class obtained from the same Spring bean factory. Note that this method is not currently used by the framework.
Typical Advisor implementations always return As of 6.0.10, the default implementation returns
| |