spring-framework / org.springframework.aop.support / AopUtils / findAdvisorsThatCanApply

findAdvisorsThatCanApply

open static fun findAdvisorsThatCanApply(candidateAdvisors: MutableList<Advisor>, clazz: Class<*>): MutableList<Advisor>

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

Parameters

candidateAdvisors - the Advisors to evaluate

clazz - the target class

Return
sublist of Advisors that can apply to an object of the given class (may be the incoming List as-is)