类 AspectJExpressionPointcutAdvisor
- java.lang.Object
- org.springframework.aop.support.AbstractPointcutAdvisor
- org.springframework.aop.support.AbstractGenericPointcutAdvisor
- org.springframework.aop.aspectj.AspectJExpressionPointcutAdvisor
- 所有已实现的接口:
Serializable,Advisor,PointcutAdvisor,Aware,BeanFactoryAware,Ordered
public class AspectJExpressionPointcutAdvisor extends AbstractGenericPointcutAdvisor implements BeanFactoryAware
Spring AOP Advisor that can be used for any AspectJ pointcut expression.- 从以下版本开始:
- 2.0
- 作者:
- Rob Harrop
- 另请参阅:
- 序列化表格
字段概要
从接口继承的字段 org.springframework.aop.Advisor
EMPTY_ADVICE
从接口继承的字段 org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
构造器概要
构造器 构造器 说明 AspectJExpressionPointcutAdvisor()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetExpression()StringgetLocation()PointcutgetPointcut()Get the Pointcut that drives this advisor.voidsetBeanFactory(BeanFactory beanFactory)Callback that supplies the owning factory to a bean instance.voidsetExpression(String expression)voidsetLocation(String location)voidsetParameterNames(String... names)voidsetParameterTypes(Class<?>... types)从类继承的方法 org.springframework.aop.support.AbstractGenericPointcutAdvisor
getAdvice, setAdvice, toString
从类继承的方法 org.springframework.aop.support.AbstractPointcutAdvisor
equals, getOrder, hashCode, isPerInstance, setOrder
构造器详细资料
AspectJExpressionPointcutAdvisor
public AspectJExpressionPointcutAdvisor()
方法详细资料
setExpression
public void setExpression(@Nullable String expression)
getExpression
@Nullable public String getExpression()
setLocation
public void setLocation(@Nullable String location)
getLocation
@Nullable public String getLocation()
setParameterNames
public void setParameterNames(String... names)
setParameterTypes
public void setParameterTypes(Class<?>... types)
setBeanFactory
public void setBeanFactory(BeanFactory beanFactory)
从接口复制的说明: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.- 指定者:
setBeanFactory在接口中BeanFactoryAware- 参数:
beanFactory- owning BeanFactory (nevernull). The bean can immediately call methods on the factory.- 另请参阅:
BeanInitializationException
getPointcut
public Pointcut getPointcut()
从接口复制的说明:PointcutAdvisorGet the Pointcut that drives this advisor.- 指定者:
getPointcut在接口中PointcutAdvisor