org.springframework.aop.aspectj
Class AspectJExpressionPointcut.BeanNameContextMatcher
java.lang.Object
org.springframework.aop.aspectj.AspectJExpressionPointcut.BeanNameContextMatcher
- All Implemented Interfaces:
- org.aspectj.weaver.tools.ContextBasedMatcher
- Enclosing class:
- AspectJExpressionPointcut
private class AspectJExpressionPointcut.BeanNameContextMatcher
- extends java.lang.Object
- implements org.aspectj.weaver.tools.ContextBasedMatcher
Matcher class for the BeanNamePointcutDesignatorHandler.
Dynamic match tests for this matcher always return true,
since the matching decision is made at the proxy creation time.
For static match tests, this matcher abstains to allow the overall
pointcut to match even when negation is used with the bean() pointcut.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
expressionPattern
private final org.aspectj.weaver.patterns.NamePattern expressionPattern
AspectJExpressionPointcut.BeanNameContextMatcher
public AspectJExpressionPointcut.BeanNameContextMatcher(java.lang.String expression)
couldMatchJoinPointsInType
public boolean couldMatchJoinPointsInType(java.lang.Class someClass)
- Specified by:
couldMatchJoinPointsInType
in interface org.aspectj.weaver.tools.ContextBasedMatcher
couldMatchJoinPointsInType
public boolean couldMatchJoinPointsInType(java.lang.Class someClass,
org.aspectj.weaver.tools.MatchingContext context)
- Specified by:
couldMatchJoinPointsInType
in interface org.aspectj.weaver.tools.ContextBasedMatcher
matchesDynamically
public boolean matchesDynamically(org.aspectj.weaver.tools.MatchingContext context)
- Specified by:
matchesDynamically
in interface org.aspectj.weaver.tools.ContextBasedMatcher
matchesStatically
public org.aspectj.weaver.tools.FuzzyBoolean matchesStatically(org.aspectj.weaver.tools.MatchingContext context)
- Specified by:
matchesStatically
in interface org.aspectj.weaver.tools.ContextBasedMatcher
mayNeedDynamicTest
public boolean mayNeedDynamicTest()
- Specified by:
mayNeedDynamicTest
in interface org.aspectj.weaver.tools.ContextBasedMatcher
contextMatch
private org.aspectj.weaver.tools.FuzzyBoolean contextMatch(java.lang.Class targetType)
matchesBeanName
private boolean matchesBeanName(java.lang.String advisedBeanName)