类 IntroductionInfoSupport

java.lang.Object
infra.aop.support.IntroductionInfoSupport
所有已实现的接口:
IntroductionInfo, Serializable
直接已知子类:
DelegatePerTargetObjectIntroductionInterceptor, DelegatingIntroductionInterceptor

public class IntroductionInfoSupport extends Object implements 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
另请参阅:
  • 字段详细资料

  • 构造器详细资料

    • 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
    • readObject

      private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
      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.
      抛出:
      IOException
      ClassNotFoundException