Example usage for org.springframework.aop.aspectj AspectJProxyUtils makeAdvisorChainAspectJCapableIfNecessary

List of usage examples for org.springframework.aop.aspectj AspectJProxyUtils makeAdvisorChainAspectJCapableIfNecessary

Introduction

In this page you can find the example usage for org.springframework.aop.aspectj AspectJProxyUtils makeAdvisorChainAspectJCapableIfNecessary.

Prototype

public static boolean makeAdvisorChainAspectJCapableIfNecessary(List<Advisor> advisors) 

Source Link

Document

Add special advisors if necessary to work with a proxy chain that contains AspectJ advisors: concretely, ExposeInvocationInterceptor at the beginning of the list.

Usage

From source file:im.tym.wraop.impl.AspectJWrapperFactorySpi.java

private boolean addAdvisorsFromAspectInstanceFactory(MetadataAwareAspectInstanceFactory instanceFactory) {
    boolean hadAspects = aspectJAdvisors.addAll(this.aspectFactory.getAdvisors(instanceFactory));
    if (hadAspects) {
        AspectJProxyUtils.makeAdvisorChainAspectJCapableIfNecessary(aspectJAdvisors);
        OrderComparator.sort(aspectJAdvisors);
    }//from   ww w.ja  v a 2  s .  c o m
    return hadAspects;
}