类 IntroductionInfoSupport
- java.lang.Object
- org.springframework.aop.support.IntroductionInfoSupport
- 所有已实现的接口:
Serializable
,IntroductionInfo
public class IntroductionInfoSupport extends Object implements IntroductionInfo, Serializable
Support for implementations ofIntroductionInfo
.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.
- 作者:
- Rod Johnson, Juergen Hoeller
- 另请参阅:
- 序列化表格
字段概要
字段 修饰符和类型 字段 说明 protected Set<Class<?>>
publishedInterfaces
构造器概要
构造器 构造器 说明 IntroductionInfoSupport()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Class<?>[]
getInterfaces()
Return the additional interfaces introduced by this Advisor or Advice.protected void
implementInterfacesOnObject(Object delegate)
Publish all interfaces that the given delegate implements at the proxy level.boolean
implementsInterface(Class<?> ifc)
Check whether the specified interfaces is a published introduction interface.protected boolean
isMethodOnIntroducedInterface(MethodInvocation mi)
Is this method on an introduced interface?void
suppressInterface(Class<?> ifc)
Suppress the specified interface, which may have been autodetected due to the delegate implementing it.
字段详细资料
publishedInterfaces
protected final Set<Class<?>> publishedInterfaces
构造器详细资料
IntroductionInfoSupport
public IntroductionInfoSupport()
方法详细资料
suppressInterface
public void suppressInterface(Class<?> ifc)
Suppress 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.
- 参数:
ifc
- the interface to suppress
getInterfaces
public Class<?>[] getInterfaces()
从接口复制的说明:IntroductionInfo
Return the additional interfaces introduced by this Advisor or Advice.- 指定者:
getInterfaces
在接口中IntroductionInfo
- 返回:
- the introduced interfaces
implementsInterface
public boolean implementsInterface(Class<?> ifc)
Check whether the specified interfaces is a published introduction interface.- 参数:
ifc
- the interface to check- 返回:
- whether the interface is part of this introduction
implementInterfacesOnObject
protected void implementInterfacesOnObject(Object delegate)
Publish all interfaces that the given delegate implements at the proxy level.- 参数:
delegate
- the delegate object
isMethodOnIntroducedInterface
protected final boolean isMethodOnIntroducedInterface(MethodInvocation mi)
Is this method on an introduced interface?- 参数:
mi
- the method invocation- 返回:
- whether the invoked method is on an introduced interface