接口 Advisor

    • 字段概要

      字段 
      修饰符和类型字段说明
      static AdviceEMPTY_ADVICE
      Common placeholder for an empty Advice to be returned from getAdvice() if no proper advice has been configured (yet).
    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型方法说明
      AdvicegetAdvice()
      Return the advice part of this aspect.
      booleanisPerInstance()
      Return whether this advice is associated with a particular instance (for example, creating a mixin) or shared with all instances of the advised class obtained from the same Spring bean factory.
    • 字段详细资料

      • EMPTY_ADVICE

        static final Advice EMPTY_ADVICE
        Common placeholder for an empty Advice to be returned from getAdvice() if no proper advice has been configured (yet).
        从以下版本开始:
        5.0
    • 方法详细资料

      • isPerInstance

        boolean isPerInstance()
        Return whether this advice is associated with a particular instance (for example, creating a mixin) or shared with all instances of the advised class obtained from the same Spring bean factory.

        Note that this method is not currently used by the framework. Typical Advisor implementations always return true. Use singleton/prototype bean definitions or appropriate programmatic proxy creation to ensure that Advisors have the correct lifecycle model.

        返回:
        whether this advice is associated with a particular target instance