|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.aop.config.SimpleBeanFactoryAwareAspectInstanceFactory
public class SimpleBeanFactoryAwareAspectInstanceFactory
Implementation of AspectInstanceFactory that locates the aspect from the
BeanFactory using a configured bean name.
| Field Summary |
|---|
| Fields inherited from interface org.springframework.core.Ordered |
|---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
| Constructor Summary | |
|---|---|
SimpleBeanFactoryAwareAspectInstanceFactory()
|
|
| Method Summary | |
|---|---|
ClassLoader |
getAspectClassLoader()
Expose the aspect class loader that this factory uses. |
Object |
getAspectInstance()
Look up the aspect bean from the BeanFactory and returns it. |
int |
getOrder()
Return the order value of this object, with a higher value meaning greater in terms of sorting. |
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 SimpleBeanFactoryAwareAspectInstanceFactory()
| 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 (never null).
The bean can immediately call methods on the factory.BeanInitializationExceptionpublic Object getAspectInstance()
BeanFactory and returns it.
getAspectInstance in interface AspectInstanceFactorynull)setAspectBeanName(java.lang.String)public ClassLoader getAspectClassLoader()
AspectInstanceFactory
getAspectClassLoader in interface AspectInstanceFactorynull)public int getOrder()
OrderedNormally starting with 0, with Integer.MAX_VALUE
indicating the greatest value. Same order values will result
in arbitrary positions for the affected objects.
Higher values can be interpreted as lower priority. As a consequence, the object with the lowest value has highest priority (somewhat analogous to Servlet "load-on-startup" values).
getOrder in interface Ordered
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||