接口 Interceptor


  • public interface Interceptor
    Proxy implementation interface class
    作者:
    liujieyu
    • 方法概要

      所有方法 实例方法 默认方法 
      修饰符和类型 方法 说明
      default void doAfter()
      Execute the proceed() method post method
      default void doAfterThrowing​(Throwable throwable)
      Execute the method after the error in the proceed() method
      default void doBefore()
      Execute the proceed() method predecessor method
      default int order()
      Interceptor weights
      default Object proceed​(ProceedPoint proceed)
      Doing an interception and executing Proceed.proceed() method is to continue executing the proxied method
    • 方法详细资料

      • doBefore

        default void doBefore()
        Execute the proceed() method predecessor method
      • doAfter

        default void doAfter()
        Execute the proceed() method post method
      • doAfterThrowing

        default void doAfterThrowing​(Throwable throwable)
                              throws Throwable
        Execute the method after the error in the proceed() method
        抛出:
        Throwable
      • proceed

        default Object proceed​(ProceedPoint proceed)
                        throws Throwable
        Doing an interception and executing Proceed.proceed() method is to continue executing the proxied method
        参数:
        proceed -
        返回:
        抛出:
        Throwable
      • order

        default int order()
        Interceptor weights
        返回: