java.lang.Object | ||
↳ | org.springframework.aop.support.AbstractExpressionPointcut | |
↳ | org.springframework.aop.aspectj.AspectJExpressionPointcut |
Spring Pointcut
implementation
that uses the AspectJ weaver to evaluate a pointcut expression.
The pointcut expression value is an AspectJ expression. This can reference other pointcuts and use composition and other operations.
Naturally, as this is to be processed by Spring AOP's proxy-based model, only method execution pointcuts are supported.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
org.springframework.aop.ClassFilter
| |||||||||||
From interface
org.springframework.aop.MethodMatcher
| |||||||||||
From interface
org.springframework.aop.Pointcut
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new default AspectJExpressionPointcut.
| |||||||||||
Create a new AspectJExpressionPointcut with the given settings.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the underlying AspectJ pointcut expression.
| |||||||||||
Is this MethodMatcher dynamic, that is, must a final call be made on the
matches(java.lang.reflect.Method, Class, Object[]) method at
runtime even if the 2-arg matches method returns true ?
Can be invoked when an AOP proxy is created, and need not be invoked again before each method invocation, | |||||||||||
Perform static checking whether the given method matches.
| |||||||||||
Callback that supplies the owning factory to a bean instance.
| |||||||||||
Set the parameter names for the pointcut.
| |||||||||||
Set the parameter types for the pointcut.
| |||||||||||
Set the declaration scope for the pointcut.
| |||||||||||
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.aop.support.AbstractExpressionPointcut
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.aop.ClassFilter
| |||||||||||
From interface
org.springframework.aop.IntroductionAwareMethodMatcher
| |||||||||||
From interface
org.springframework.aop.MethodMatcher
| |||||||||||
From interface
org.springframework.aop.Pointcut
| |||||||||||
From interface
org.springframework.aop.support.ExpressionPointcut
| |||||||||||
From interface
org.springframework.beans.factory.BeanFactoryAware
|
Create a new default AspectJExpressionPointcut.
Create a new AspectJExpressionPointcut with the given settings.
declarationScope | the declaration scope for the pointcut |
---|---|
paramNames | the parameter names for the pointcut |
paramTypes | the parameter types for the pointcut |
Return the underlying AspectJ pointcut expression.
Is this MethodMatcher dynamic, that is, must a final call be made on the
matches(java.lang.reflect.Method, Class, Object[])
method at
runtime even if the 2-arg matches method returns true
?
Can be invoked when an AOP proxy is created, and need not be invoked again before each method invocation,
matches(java.lang.reflect.Method, Class, Object[])
method
is required if static matching passed
Perform static checking whether the given method matches. This may be invoked
instead of the 2-arg matches(java.lang.reflect.Method, Class)
method
if the caller supports the extended IntroductionAwareMethodMatcher interface.
method | the candidate method |
---|---|
targetClass | the target class (may be null , in which case
the candidate class must be taken to be the method's declaring class) |
beanHasIntroductions | true if the object on whose behalf we are
asking is the subject on one or more introductions; false otherwise |
Callback that supplies the owning factory to a bean instance.
Invoked after the population of normal bean properties
but before an initialization callback such as
afterPropertiesSet()
or a custom init-method.
beanFactory | owning BeanFactory (never null ).
The bean can immediately call methods on the factory. |
---|
Set the declaration scope for the pointcut.