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