Example usage for org.springframework.aop.support AopUtils findAdvisorsThatCanApply

List of usage examples for org.springframework.aop.support AopUtils findAdvisorsThatCanApply

Introduction

In this page you can find the example usage for org.springframework.aop.support AopUtils findAdvisorsThatCanApply.

Prototype

public static List<Advisor> findAdvisorsThatCanApply(List<Advisor> candidateAdvisors, Class<?> clazz) 

Source Link

Document

Determine the sublist of the candidateAdvisors list that is applicable to the given class.

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()));
    }/* w ww  .  j  av a 2 s.  com*/
    return support;
}