类 IntroductionInfoSupport
java.lang.Object
infra.aop.support.IntroductionInfoSupport
- 所有已实现的接口:
IntroductionInfo,Serializable
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.
- 从以下版本开始:
- 3.0
- 作者:
- Rod Johnson, Juergen Hoeller, TODAY 2021/3/8 22:19
- 另请参阅:
-
字段概要
字段修饰符和类型字段说明(专用程序包) final LinkedHashSet<Class<?>>private ConcurrentHashMap<Method,Boolean> private static final long -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Class<?>[]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?private voidThis method is implemented only to restore the logger.voidsuppressInterface(Class<?> ifc) Suppress the specified interface, which may have been autodetected due to the delegate implementing it.
-
字段详细资料
-
serialVersionUID
private static final long serialVersionUID- 另请参阅:
-
publishedInterfaces
-
rememberedMethods
-
-
构造器详细资料
-
IntroductionInfoSupport
public IntroductionInfoSupport()
-
-
方法详细资料
-
suppressInterface
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
从接口复制的说明:IntroductionInfoReturn the additional interfaces introduced by this Advisor or Advice.- 指定者:
getInterfaces在接口中IntroductionInfo- 返回:
- the introduced interfaces
-
implementsInterface
Check whether the specified interfaces is a published introduction interface.- 参数:
ifc- the interface to check- 返回:
- whether the interface is part of this introduction
-
implementInterfacesOnObject
Publish all interfaces that the given delegate implements at the proxy level.- 参数:
delegate- the delegate object
-
isMethodOnIntroducedInterface
Is this method on an introduced interface?- 参数:
mi- the method invocation- 返回:
- whether the invoked method is on an introduced interface
-
readObject
This method is implemented only to restore the logger. We don't make the logger static as that would mean that subclasses would use this class's log category.
-