程序包 infra.aop.config
类 SimpleBeanFactoryAwareAspectInstanceFactory
java.lang.Object
infra.aop.config.SimpleBeanFactoryAwareAspectInstanceFactory
- 所有已实现的接口:
AspectInstanceFactory,infra.beans.factory.Aware,infra.beans.factory.BeanFactoryAware,infra.core.Ordered
public class SimpleBeanFactoryAwareAspectInstanceFactory
extends Object
implements AspectInstanceFactory, infra.beans.factory.BeanFactoryAware
Implementation of
AspectInstanceFactory that locates the aspect from the
BeanFactory using a configured bean name.- 从以下版本开始:
- 4.0
- 作者:
- Rob Harrop, Juergen Hoeller
-
字段概要
字段从接口继承的字段 infra.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Expose the aspect class loader that this factory uses.Look up the aspect bean from theBeanFactoryand returns it.intgetOrder()voidsetAspectBeanName(String aspectBeanName) Set the name of the aspect bean.voidsetBeanFactory(infra.beans.factory.BeanFactory beanFactory)
-
字段详细资料
-
aspectBeanName
-
beanFactory
@Nullable private infra.beans.factory.BeanFactory beanFactory
-
-
构造器详细资料
-
SimpleBeanFactoryAwareAspectInstanceFactory
public SimpleBeanFactoryAwareAspectInstanceFactory()
-
-
方法详细资料
-
setAspectBeanName
Set the name of the aspect bean. This is the bean that is returned when callinggetAspectInstance(). -
setBeanFactory
public void setBeanFactory(infra.beans.factory.BeanFactory beanFactory) - 指定者:
setBeanFactory在接口中infra.beans.factory.BeanFactoryAware
-
getAspectInstance
Look up the aspect bean from theBeanFactoryand returns it.- 指定者:
getAspectInstance在接口中AspectInstanceFactory- 返回:
- the aspect instance (never
null) - 另请参阅:
-
getAspectClassLoader
从接口复制的说明:AspectInstanceFactoryExpose the aspect class loader that this factory uses.- 指定者:
getAspectClassLoader在接口中AspectInstanceFactory- 返回:
- the aspect class loader (or
nullfor the bootstrap loader) - 另请参阅:
-
ClassUtils.getDefaultClassLoader()
-
getOrder
public int getOrder()- 指定者:
getOrder在接口中infra.core.Ordered
-