Top Description Fields Constructors Methods
org.springframework.aop.framework.autoproxy

public Class BeanFactoryAdvisorRetrievalHelper

extends Object
Class Inheritance
Known Direct Subclasses
org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.BeanFactoryAdvisorRetrievalHelperAdapter
Imports
java.util.ArrayList, .List, org.apache.commons.logging.Log, .LogFactory, org.springframework.aop.Advisor, org.springframework.beans.factory.BeanCreationException, .BeanCurrentlyInCreationException, .BeanFactoryUtils, org.springframework.beans.factory.config.ConfigurableListableBeanFactory, org.springframework.lang.Nullable, org.springframework.util.Assert

Helper for retrieving standard Spring Advisors from a BeanFactory, for use with auto-proxying.
Author
Juergen Hoeller
Since
2.0.2
See Also
AbstractAdvisorAutoProxyCreator

Field Summary

Modifier and TypeField and Description
private final ConfigurableListableBeanFactory
private volatile String[]
private static final Log

Constructor Summary

AccessConstructor and Description
public
BeanFactoryAdvisorRetrievalHelper(ConfigurableListableBeanFactory
the ListableBeanFactory to scan
beanFactory
)

Create a new BeanFactoryAdvisorRetrievalHelper for the given BeanFactory.

Method Summary

Modifier and TypeMethod and Description
public List<Advisor>

Returns:

the list of org.springframework.aop.Advisor beans
findAdvisorBeans
()

Find all eligible Advisor beans in the current bean factory, ignoring FactoryBeans and excluding beans that are currently in creation.

protected boolean

Returns:

whether the bean is eligible
isEligibleBean
(String
the name of the aspect bean
beanName
)

Determine whether the aspect bean with the given name is eligible.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

beanFactoryback to summary
private final ConfigurableListableBeanFactory beanFactory
cachedAdvisorBeanNamesback to summary
private volatile String[] cachedAdvisorBeanNames
Annotations
@Nullable
loggerback to summary
private static final Log logger

Constructor Detail

BeanFactoryAdvisorRetrievalHelperback to summary
public BeanFactoryAdvisorRetrievalHelper(ConfigurableListableBeanFactory beanFactory)

Create a new BeanFactoryAdvisorRetrievalHelper for the given BeanFactory.

Parameters
beanFactory:ConfigurableListableBeanFactory

the ListableBeanFactory to scan

Method Detail

findAdvisorBeansback to summary
public List<Advisor> findAdvisorBeans()

Find all eligible Advisor beans in the current bean factory, ignoring FactoryBeans and excluding beans that are currently in creation.

Returns:List<Advisor>

the list of org.springframework.aop.Advisor beans

See Also
isEligibleBean
isEligibleBeanback to summary
protected boolean isEligibleBean(String beanName)

Determine whether the aspect bean with the given name is eligible.

The default implementation always returns true.

Parameters
beanName:String

the name of the aspect bean

Returns:boolean

whether the bean is eligible