org.springframework.aop |
Core Spring AOP interfaces, built on AOP Alliance AOP interoperability interfaces.
Any AOP Alliance MethodInterceptor is usable in Spring.
Spring AOP also offers:
- Introduction support
- A Pointcut abstraction, supporting "static" pointcuts
(class and method-based) and "dynamic" pointcuts (also considering method arguments).
There are currently no AOP Alliance interfaces for pointcuts.
- A full range of advice types, including around, before, after returning and throws advice.
- Extensibility allowing arbitrary custom advice types to
be plugged in without modifying the core framework.
Spring AOP can be used programmatically or (preferably)
integrated with the Spring IoC container.
|
Java Source File Name | Type | Comment |
Advisor.java | Interface | Base interface holding AOP advice (action to take at a joinpoint)
and a filter determining the applicability of the advice (such as
a pointcut). |
AfterAdvice.java | Interface | Common marker interface for after advice,
such as
AfterReturningAdvice and
ThrowsAdvice . |
AfterReturningAdvice.java | Interface | After returning advice is invoked only on normal method return, not if an
exception is thrown. |
AopInvocationException.java | Class | Exception that gets thrown when an AOP invocation failed
because of misconfiguration or unexpected runtime issues. |
BeforeAdvice.java | Interface | Common marker interface for before advice, such as
MethodBeforeAdvice .
Spring supports only method before advice. |
ClassFilter.java | Interface | Filter that restricts matching of a pointcut or introduction to
a given set of target classes. |
DynamicIntroductionAdvice.java | Interface | Subinterface of AOP Alliance Advice that allows additional interfaces
to be implemented by an Advice, and available via a proxy using that
interceptor. |
IntroductionAdvisor.java | Interface | Superinterface for advisors that perform one or more AOP introductions. |
IntroductionAwareMethodMatcher.java | Interface | A specialized type of MethodMatcher that takes into account introductions when
matching methods. |
IntroductionInfo.java | Interface | Interface supplying the information necessary to describe an introduction.
IntroductionAdvisor IntroductionAdvisors must implement this
interface. |
IntroductionInterceptor.java | Interface | Subinterface of AOP Alliance MethodInterceptor that allows additional interfaces
to be implemented by the interceptor, and available via a proxy using that
interceptor. |
MethodBeforeAdvice.java | Interface | Advice invoked before a method is invoked. |
MethodMatcher.java | Interface | Part of a
Pointcut : Checks whether the target method is eligible for advice.
A MethodMatcher may be evaluated statically or at runtime (dynamically).
Static matching involves method and (possibly) method attributes. |
Pointcut.java | Interface | Core Spring pointcut abstraction.
A pointcut is composed of a
ClassFilter and a
MethodMatcher .
Both these basic terms and a Pointcut itself can be combined to build up combinations
(e.g. |
PointcutAdvisor.java | Interface | Superinterface for all Advisors that are driven by a pointcut. |
ProxyMethodInvocation.java | Interface | Extension of the AOP Alliance
org.aopalliance.intercept.MethodInvocation interface, allowing access to the proxy that the method invocation was made through. |
RawTargetAccess.java | Interface | 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).
Note that this is a marker interface in the style of
java.io.Serializable ,
semantically applying to a declared interface rather than to the full class
of a concrete object. |
SpringProxy.java | Interface | Marker interface implemented by all AOP proxies. |
TargetClassAware.java | Interface | Minimal interface for exposing the target class behind a proxy. |
TargetSource.java | Interface | A TargetSource is used to obtain the current "target" of
an AOP invocation, which will be invoked via reflection if no around
advice chooses to end the interceptor chain itself.
If a TargetSource is "static", it will always return
the same target, allowing optimizations in the AOP framework. |
ThrowsAdvice.java | Interface | Tag interface for throws advice.
There are not any methods on this interface, as methods are invoked by
reflection. |
TrueClassFilter.java | Class | Canonical ClassFilter instance that matches all classes. |
TrueMethodMatcher.java | Class | Canonical MethodMatcher instance that matches all methods. |
TruePointcut.java | Class | Canonical Pointcut instance that always matches. |