接口 NacosNamingInterceptor<T extends Interceptable>

    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型 方法 说明
      boolean intercept​(T object)
      Do intercept operation.
      boolean isInterceptType​(java.lang.Class<?> type)
      Judge whether the input type is intercepted by this Interceptor.
      int order()
      The order of interceptor.
    • 方法详细资料

      • isInterceptType

        boolean isInterceptType​(java.lang.Class<?> type)
        Judge whether the input type is intercepted by this Interceptor.

        This method only should judge the object type whether need be do intercept. Not the intercept logic.

        参数:
        type - type
        返回:
        true if the input type is intercepted by this Interceptor, otherwise false
      • intercept

        boolean intercept​(T object)
        Do intercept operation.

        This method is the actual intercept operation.

        参数:
        object - need intercepted object
        返回:
        true if object is intercepted, otherwise false
      • order

        int order()
        The order of interceptor. The lower the number, the earlier the execution.
        返回:
        the order number of interceptor