Class SimpleBeanFactoryAwareAspectInstanceFactory
java.lang.Object
org.springframework.aop.config.SimpleBeanFactoryAwareAspectInstanceFactory
- All Implemented Interfaces:
- AspectInstanceFactory,- Aware,- BeanFactoryAware,- Ordered
public class SimpleBeanFactoryAwareAspectInstanceFactory
extends Object
implements AspectInstanceFactory, BeanFactoryAware
Implementation of 
AspectInstanceFactory that locates the aspect from the
 BeanFactory using a configured bean name.- Since:
- 2.0
- Author:
- Rob Harrop, Juergen Hoeller
- 
Field SummaryFields inherited from interface org.springframework.core.OrderedHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionExpose the aspect class loader that this factory uses.Look up the aspect bean from theBeanFactoryand return it.intgetOrder()Get the order value of this object.voidsetAspectBeanName(String aspectBeanName) Set the name of the aspect bean.voidsetBeanFactory(BeanFactory beanFactory) Callback that supplies the owning factory to a bean instance.
- 
Constructor Details- 
SimpleBeanFactoryAwareAspectInstanceFactorypublic SimpleBeanFactoryAwareAspectInstanceFactory()
 
- 
- 
Method Details- 
setAspectBeanNameSet the name of the aspect bean. This is the bean that is returned when callinggetAspectInstance().
- 
setBeanFactoryDescription copied from interface:BeanFactoryAwareCallback that supplies the owning factory to a bean instance.Invoked after the population of normal bean properties but before an initialization callback such as InitializingBean.afterPropertiesSet()or a custom init-method.- Specified by:
- setBeanFactoryin interface- BeanFactoryAware
- Parameters:
- beanFactory- owning BeanFactory (never- null). The bean can immediately call methods on the factory.
- See Also:
 
- 
getAspectInstanceLook up the aspect bean from theBeanFactoryand return it.- Specified by:
- getAspectInstancein interface- AspectInstanceFactory
- Returns:
- the aspect instance (never null)
- See Also:
 
- 
getAspectClassLoaderDescription copied from interface:AspectInstanceFactoryExpose the aspect class loader that this factory uses.- Specified by:
- getAspectClassLoaderin interface- AspectInstanceFactory
- Returns:
- the aspect class loader (or nullfor the bootstrap loader)
- See Also:
 
- 
getOrderpublic int getOrder()Description copied from interface:OrderedGet the order value of this object.Higher values are interpreted as lower priority. As a consequence, the object with the lowest value has the highest priority (somewhat analogous to Servlet load-on-startupvalues).Same order values will result in arbitrary sort positions for the affected objects. 
 
-