Class IntroductionInfoSupport
java.lang.Object
org.springframework.aop.support.IntroductionInfoSupport
- All Implemented Interfaces:
- Serializable, IntroductionInfo
- Direct Known Subclasses:
- DelegatePerTargetObjectIntroductionInterceptor, DelegatingIntroductionInterceptor
Support for implementations of 
IntroductionInfo.
Allows subclasses to conveniently add all interfaces from a given object, and to suppress interfaces that should not be added. Also allows for querying all introduced interfaces.
- Author:
- Rod Johnson, Juergen Hoeller
- See Also:
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionClass<?>[]Return the additional interfaces introduced by this Advisor or Advice.protected voidimplementInterfacesOnObject(Object delegate) Publish all interfaces that the given delegate implements at the proxy level.booleanimplementsInterface(Class<?> ifc) Check whether the specified interfaces is a published introduction interface.protected final booleanIs this method on an introduced interface?voidsuppressInterface(Class<?> ifc) Suppress the specified interface, which may have been autodetected due to the delegate implementing it.
- 
Field Details- 
publishedInterfaces
 
- 
- 
Constructor Details- 
IntroductionInfoSupportpublic IntroductionInfoSupport()
 
- 
- 
Method Details- 
suppressInterfaceSuppress the specified interface, which may have been autodetected due to the delegate implementing it. Call this method to exclude internal interfaces from being visible at the proxy level.Does nothing if the interface is not implemented by the delegate. - Parameters:
- ifc- the interface to suppress
 
- 
getInterfacesDescription copied from interface:IntroductionInfoReturn the additional interfaces introduced by this Advisor or Advice.- Specified by:
- getInterfacesin interface- IntroductionInfo
- Returns:
- the introduced interfaces
 
- 
implementsInterfaceCheck whether the specified interfaces is a published introduction interface.- Parameters:
- ifc- the interface to check
- Returns:
- whether the interface is part of this introduction
 
- 
implementInterfacesOnObjectPublish all interfaces that the given delegate implements at the proxy level.- Parameters:
- delegate- the delegate object
 
- 
isMethodOnIntroducedInterfaceIs this method on an introduced interface?- Parameters:
- mi- the method invocation
- Returns:
- whether the invoked method is on an introduced interface
 
 
-