org.springframework.aop.aspectj
Class AspectJExpressionPointcut.BeanNameContextMatcher

java.lang.Object
  extended by 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.


Field Summary
private  org.aspectj.weaver.patterns.NamePattern expressionPattern
           
 
Constructor Summary
AspectJExpressionPointcut.BeanNameContextMatcher(java.lang.String expression)
           
 
Method Summary
private  org.aspectj.weaver.tools.FuzzyBoolean contextMatch(java.lang.Class targetType)
           
 boolean couldMatchJoinPointsInType(java.lang.Class someClass)
           
 boolean couldMatchJoinPointsInType(java.lang.Class someClass, org.aspectj.weaver.tools.MatchingContext context)
           
private  boolean matchesBeanName(java.lang.String advisedBeanName)
           
 boolean matchesDynamically(org.aspectj.weaver.tools.MatchingContext context)
           
 org.aspectj.weaver.tools.FuzzyBoolean matchesStatically(org.aspectj.weaver.tools.MatchingContext context)
           
 boolean mayNeedDynamicTest()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

expressionPattern

private final org.aspectj.weaver.patterns.NamePattern expressionPattern
Constructor Detail

AspectJExpressionPointcut.BeanNameContextMatcher

public AspectJExpressionPointcut.BeanNameContextMatcher(java.lang.String expression)
Method Detail

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)