Interface MethodAdviceReceiver

    • Method Detail

      • adviseAllMethods

        void adviseAllMethods​(MethodAdvice advice)
        Advises all methods of the interface with the given advice.
        Parameters:
        advice - the method advice to be applied.
        Since:
        5.3
      • adviseMethod

        void adviseMethod​(java.lang.reflect.Method method,
                          MethodAdvice advice)
        Adds advice for a specific method of the aspect interceptor being constructed.
        Parameters:
        method - method (of the interface for which an interceptor is being constructed) to be advised. Multiple advice is allowed for a single method; the advice will be executed in the order it is added.
        advice - the advice for this particular method. Advice must be threadsafe.
        Since:
        5.3
      • getInterface

        java.lang.Class getInterface()
        Returns the interface for which methods may be advised.
        Returns:
        the interface class instance.
        Since:
        5.1.0.0
      • getMethodAnnotation

        <T extends java.lang.annotation.Annotation> T getMethodAnnotation​(java.lang.reflect.Method method,
                                                                          java.lang.Class<T> annotationType)
        Type Parameters:
        T - type of annotation
        Parameters:
        method - method to search
        annotationType - type of annotation
        Returns:
        the annotation found on the underlying implementation class (if known) or service interface, or null if not found