org.springframework.aop.aspectj
Class AspectJExpressionPointcut.BeanNameContextMatcher

java.lang.Object
  extended by org.springframework.aop.aspectj.AspectJExpressionPointcut.BeanNameContextMatcher
Enclosing class:
AspectJExpressionPointcut

private class AspectJExpressionPointcut.BeanNameContextMatcher
extends java.lang.Object

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  NamePattern expressionPattern
           
 
Constructor Summary
AspectJExpressionPointcut.BeanNameContextMatcher(java.lang.String expression)
           
 
Method Summary
private  FuzzyBoolean contextMatch(java.lang.Class targetType)
           
 boolean couldMatchJoinPointsInType(java.lang.Class someClass)
           
 boolean couldMatchJoinPointsInType(java.lang.Class someClass, MatchingContext context)
           
private  boolean matchesBeanName(java.lang.String advisedBeanName)
           
 boolean matchesDynamically(MatchingContext context)
           
 FuzzyBoolean matchesStatically(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 NamePattern expressionPattern
Constructor Detail

AspectJExpressionPointcut.BeanNameContextMatcher

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

couldMatchJoinPointsInType

public boolean couldMatchJoinPointsInType(java.lang.Class someClass)

couldMatchJoinPointsInType

public boolean couldMatchJoinPointsInType(java.lang.Class someClass,
                                          MatchingContext context)

matchesDynamically

public boolean matchesDynamically(MatchingContext context)

matchesStatically

public FuzzyBoolean matchesStatically(MatchingContext context)

mayNeedDynamicTest

public boolean mayNeedDynamicTest()

contextMatch

private FuzzyBoolean contextMatch(java.lang.Class targetType)

matchesBeanName

private boolean matchesBeanName(java.lang.String advisedBeanName)