|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
A DelegatingIntroductionInterceptor is serializable if the delegate is.
IntroductionInfoSupport.suppressInterface(java.lang.Class)
,
Serialized FormField Summary |
Fields inherited from class org.springframework.aop.support.IntroductionInfoSupport |
logger, publishedInterfaces |
Constructor Summary | |
protected |
DelegatingIntroductionInterceptor()
Construct a new DelegatingIntroductionInterceptor. |
|
DelegatingIntroductionInterceptor(Object delegate)
Construct a new DelegatingIntroductionInterceptor, providing a delegate that implements the interfaces to be introduced. |
Method Summary | |
Object |
invoke(MethodInvocation mi)
Subclasses may need to override this if they want to perform custom behaviour in around advice. |
Methods inherited from class org.springframework.aop.support.IntroductionInfoSupport |
getInterfaces, implementInterfacesOnObject, implementsInterface, isMethodOnIntroducedInterface, suppressInterface |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.springframework.aop.DynamicIntroductionAdvice |
implementsInterface |
Constructor Detail |
public DelegatingIntroductionInterceptor(Object delegate)
delegate
- the delegate that implements the introduced interfacesprotected DelegatingIntroductionInterceptor()
Method Detail |
public Object invoke(MethodInvocation mi) throws Throwable
invoke
in interface MethodInterceptor
Throwable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |