Any AOP Alliance MethodInterceptor is usable in Spring.
Spring AOP also offers:
Spring AOP can be used programmatically or (preferably) integrated with the Spring IoC container.
| Modifier and Type | Interface and Description |
|---|---|
| public interface | Advisor
Base interface holding AOP advice (action to take at a joinpoint) and a filter determining the applicability of the advice (such as a pointcut). |
| public interface | AfterAdvice
Common marker interface for after advice,
such as |
| public interface | AfterReturningAdvice
After returning advice is invoked only on normal method return, not if an exception is thrown. |
| public interface | BeforeAdvice
Common marker interface for before advice, such as |
| public interface | ClassFilter
Filter that restricts matching of a pointcut or introduction to a given set of target classes. |
| public interface | DynamicIntroductionAdvice
Subinterface of AOP Alliance Advice that allows additional interfaces to be implemented by an Advice, and available via a proxy using that interceptor. |
| public interface | IntroductionAdvisor
Superinterface for advisors that perform one or more AOP introductions. |
| public interface | IntroductionAwareMethodMatcher
A specialized type of |
| public interface | IntroductionInfo
Interface supplying the information necessary to describe an introduction. |
| public interface | IntroductionInterceptor
Subinterface of AOP Alliance MethodInterceptor that allows additional interfaces to be implemented by the interceptor, and available via a proxy using that interceptor. |
| public interface | MethodBeforeAdvice
Advice invoked before a method is invoked. |
| public interface | MethodMatcher
Part of a |
| public interface | Pointcut
Core Spring pointcut abstraction. |
| public interface | PointcutAdvisor
Superinterface for all Advisors that are driven by a pointcut. |
| public interface | ProxyMethodInvocation
Extension of the AOP Alliance |
| public interface | RawTargetAccess
Marker for AOP proxy interfaces (in particular: introduction interfaces) that explicitly intend to return the raw target object (which would normally get replaced with the proxy object when returned from a method invocation). |
| public interface | SpringProxy
Marker interface implemented by all AOP proxies. |
| public interface | TargetClassAware
Minimal interface for exposing the target class behind a proxy. |
| public interface | TargetSource
A |
| public interface | ThrowsAdvice
Tag interface for throws advice. |
| Modifier and Type | Class and Description |
|---|---|
| public class | AopInvocationException
Exception that gets thrown when an AOP invocation failed because of misconfiguration or unexpected runtime issues. |
| pack-priv class | TrueClassFilter
Canonical ClassFilter instance that matches all classes. |
| pack-priv class | TrueMethodMatcher
Canonical MethodMatcher instance that matches all methods. |
| pack-priv class | TruePointcut
Canonical Pointcut instance that always matches. |