|
The Spring Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.aop.config.BeanFactoryAspectInstanceFactory
public class BeanFactoryAspectInstanceFactory
Implementation of AspectInstanceFactory that locates the aspect from the
BeanFactory using a configured bean name.
| Constructor Summary | |
|---|---|
BeanFactoryAspectInstanceFactory()
|
|
| Method Summary | |
|---|---|
Object |
getAspectInstance()
Look up the aspect bean from the BeanFactory and returns it. |
int |
getInstantiationCount()
Return the number of instantiations from this factory. |
void |
setAspectBeanName(String aspectBeanName)
Set the name of the aspect bean. |
void |
setBeanFactory(BeanFactory beanFactory)
Callback that supplies the owning factory to a bean instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BeanFactoryAspectInstanceFactory()
| Method Detail |
|---|
public void setAspectBeanName(String aspectBeanName)
getAspectInstance().
public void setBeanFactory(BeanFactory beanFactory)
BeanFactoryAwareInvoked after the population of normal bean properties but
before an initialization callback such as
InitializingBean.afterPropertiesSet()
or a custom init-method.
setBeanFactory in interface BeanFactoryAwarebeanFactory - owning BeanFactory (may not be null).
The bean can immediately call methods on the factory.BeanInitializationExceptionpublic Object getAspectInstance()
BeanFactory and returns it.
getAspectInstance in interface AspectInstanceFactorysetAspectBeanName(java.lang.String)public int getInstantiationCount()
AspectInstanceFactory
getInstantiationCount in interface AspectInstanceFactory
|
The Spring Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||