The Spring Framework

org.springframework.aop.support
Class UnionPointcut

java.lang.Object
  extended by org.springframework.aop.support.UnionPointcut
All Implemented Interfaces:
Serializable, Pointcut

 class UnionPointcut
extends Object
implements Pointcut, Serializable

Pointcut unions are tricky, because we can't just 'OR' the MethodMatchers: We need to check that each MethodMatcher's ClassFilter was happy as well.

Author:
Rod Johnson, Rob Harrop

Field Summary
 
Fields inherited from interface org.springframework.aop.Pointcut
TRUE
 
Constructor Summary
UnionPointcut(Pointcut a, Pointcut b)
           
 
Method Summary
 boolean equals(Object other)
           
 ClassFilter getClassFilter()
          Return the ClassFilter for this pointcut.
 MethodMatcher getMethodMatcher()
          Return the MethodMatcher for this pointcut.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnionPointcut

public UnionPointcut(Pointcut a,
                     Pointcut b)
Method Detail

getClassFilter

public ClassFilter getClassFilter()
Description copied from interface: Pointcut
Return the ClassFilter for this pointcut.

Specified by:
getClassFilter in interface Pointcut

getMethodMatcher

public MethodMatcher getMethodMatcher()
Description copied from interface: Pointcut
Return the MethodMatcher for this pointcut.

Specified by:
getMethodMatcher in interface Pointcut

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

The Spring Framework

Copyright © 2002-2006 The Spring Framework.