java.lang.Object | ||
↳ | org.springframework.aop.support.IntroductionInfoSupport | |
↳ | org.springframework.aop.support.DelegatingIntroductionInterceptor |
Convenient implementation of the
IntroductionInterceptor
interface.
Subclasses merely need to extend this class and implement the interfaces to be introduced themselves. In this case the delegate is the subclass instance itself. Alternatively a separate delegate may implement the interface, and be set via the delegate bean property.
Delegates or subclasses may implement any number of interfaces. All interfaces except IntroductionInterceptor are picked up from the subclass or delegate by default.
The suppressInterface
method can be used to suppress interfaces
implemented by the delegate but which should not be introduced to the owning
AOP proxy.
An instance of this class is serializable if the delegate is.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.aop.support.IntroductionInfoSupport
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Construct a new DelegatingIntroductionInterceptor, providing
a delegate that implements the interfaces to be introduced.
|
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Construct a new DelegatingIntroductionInterceptor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Subclasses may need to override this if they want to perform custom
behaviour in around advice.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Proceed with the supplied org.aopalliance.intercept.MethodInterceptor.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.aop.support.IntroductionInfoSupport
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.aop.DynamicIntroductionAdvice
| |||||||||||
From interface
org.springframework.aop.IntroductionInfo
|
Construct a new DelegatingIntroductionInterceptor, providing a delegate that implements the interfaces to be introduced.
delegate | the delegate that implements the introduced interfaces |
---|
Construct a new DelegatingIntroductionInterceptor. The delegate will be the subclass, which must implement additional interfaces.
Subclasses may need to override this if they want to perform custom behaviour in around advice. However, subclasses should invoke this method, which handles introduced interfaces and forwarding to the target.
Throwable |
---|
Proceed with the supplied org.aopalliance.intercept.MethodInterceptor. Subclasses can override this method to intercept method invocations on the target object which is useful when an introduction needs to monitor the object that it is introduced into. This method is never called for MethodInvocation MethodInvocations on the introduced interfaces.
Throwable |
---|