org.springframework.aop.framework.autoproxy
Class BeanFactoryAdvisorRetrievalHelper

java.lang.Object
  extended by org.springframework.aop.framework.autoproxy.BeanFactoryAdvisorRetrievalHelper
Direct Known Subclasses:
AbstractAdvisorAutoProxyCreator.BeanFactoryAdvisorRetrievalHelperAdapter

public class BeanFactoryAdvisorRetrievalHelper
extends java.lang.Object

Helper for retrieving standard Spring Advisors from a BeanFactory, for use with auto-proxying.

Since:
2.0.2
Author:
Juergen Hoeller
See Also:
AbstractAdvisorAutoProxyCreator

Field Summary
private  ConfigurableListableBeanFactory beanFactory
           
private  java.lang.String[] cachedAdvisorBeanNames
           
private static Log logger
           
 
Constructor Summary
BeanFactoryAdvisorRetrievalHelper(ConfigurableListableBeanFactory beanFactory)
          Create a new BeanFactoryAdvisorRetrievalHelper for the given BeanFactory.
 
Method Summary
 java.util.List<Advisor> findAdvisorBeans()
          Find all eligible Advisor beans in the current bean factory, ignoring FactoryBeans and excluding beans that are currently in creation.
protected  boolean isEligibleBean(java.lang.String beanName)
          Determine whether the aspect bean with the given name is eligible.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static final Log logger

beanFactory

private final ConfigurableListableBeanFactory beanFactory

cachedAdvisorBeanNames

private java.lang.String[] cachedAdvisorBeanNames
Constructor Detail

BeanFactoryAdvisorRetrievalHelper

public BeanFactoryAdvisorRetrievalHelper(ConfigurableListableBeanFactory beanFactory)
Create a new BeanFactoryAdvisorRetrievalHelper for the given BeanFactory.

Parameters:
beanFactory - the ListableBeanFactory to scan
Method Detail

findAdvisorBeans

public java.util.List<Advisor> findAdvisorBeans()
Find all eligible Advisor beans in the current bean factory, ignoring FactoryBeans and excluding beans that are currently in creation.

Returns:
the list of Advisor beans
See Also:
isEligibleBean(java.lang.String)

isEligibleBean

protected boolean isEligibleBean(java.lang.String beanName)
Determine whether the aspect bean with the given name is eligible.

The default implementation always returns true.

Parameters:
beanName - the name of the aspect bean
Returns:
whether the bean is eligible