类 AspectJAwareAdvisorAutoProxyCreator

    • 方法详细资料

      • sortAdvisors

        protected List<AdvisorsortAdvisors​(List<Advisor> advisors)
        Sort the rest by AspectJ precedence. If two pieces of advice have come from the same aspect they will have the same order. Advice from the same aspect is then further ordered according to the following rules:
        • if either of the pair is after advice, then the advice declared last gets highest precedence (runs last)
        • otherwise the advice declared first gets highest precedence (runs first)

        Important: Advisors are sorted in precedence order, from highest precedence to lowest. "On the way in" to a join point, the highest precedence advisor should run first. "On the way out" of a join point, the highest precedence advisor should run last.

        覆盖:
        sortAdvisors 在类中 AbstractAdvisorAutoProxyCreator
        参数:
        advisors - the source List of Advisors
        返回:
        the sorted List of Advisors
        另请参阅:
        Ordered, Order, AnnotationAwareOrderComparator
      • shouldSkip

        protected boolean shouldSkip​(Class<?> beanClass,
                                     String beanName)
        从类复制的说明: AbstractAutoProxyCreator
        Subclasses should override this method to return true if the given bean should not be considered for auto-proxying by this post-processor.

        Sometimes we need to be able to avoid this happening if it will lead to a circular reference. This implementation returns false.

        覆盖:
        shouldSkip 在类中 AbstractAutoProxyCreator
        参数:
        beanClass - the class of the bean
        beanName - the name of the bean
        返回:
        whether to skip the given bean