org.springframework.aop.support

Class AbstractBeanFactoryPointcutAdvisor

    • Constructor Detail

      • AbstractBeanFactoryPointcutAdvisor

        public AbstractBeanFactoryPointcutAdvisor()
    • Method Detail

      • setAdviceBeanName

        public void setAdviceBeanName(@Nullable
                                      java.lang.String adviceBeanName)
        Specify the name of the advice bean that this advisor should refer to.

        An instance of the specified bean will be obtained on first access of this advisor's advice. This advisor will only ever obtain at most one single instance of the advice bean, caching the instance for the lifetime of the advisor.

        See Also:
        getAdvice()
      • getAdviceBeanName

        @Nullable
        public java.lang.String getAdviceBeanName()
        Return the name of the advice bean that this advisor refers to, if any.
      • setAdvice

        public void setAdvice(Advice advice)
        Specify a particular instance of the target advice directly, avoiding lazy resolution in getAdvice().
        Since:
        3.1
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object