Example usage for org.springframework.aop.framework AdvisedSupport addAdvisors

List of usage examples for org.springframework.aop.framework AdvisedSupport addAdvisors

Introduction

In this page you can find the example usage for org.springframework.aop.framework AdvisedSupport addAdvisors.

Prototype

public void addAdvisors(Collection<Advisor> advisors) 

Source Link

Document

Add all of the given advisors to this proxy configuration.

Usage

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

@Override
protected AdvisedSupport getAdvisedSupportFor(I object) {
    AdvisedSupport support = super.getAdvisedSupportFor(object);
    if (!aspectJAdvisors.isEmpty()) {
        support.addAdvisors(AopUtils.findAdvisorsThatCanApply(aspectJAdvisors, object.getClass()));
    }//from   w w w . j a  v a2  s  . co m
    return support;
}