Save This Page
Home » spring-framework-2.5.5-with-dependencies » org.springframework » aop » support » [javadoc | source]
org.springframework.aop.support
public class: ComposablePointcut [javadoc | source]
java.lang.Object
   org.springframework.aop.support.ComposablePointcut

All Implemented Interfaces:
    Serializable, Pointcut

Convenient class for building up pointcuts. All methods return ComposablePointcut, so we can use a concise idiom like: Pointcut pc = new ComposablePointcut().union(classFilter).intersection(methodMatcher).intersection(pointcut);
Constructor:
 public ComposablePointcut() 
 public ComposablePointcut(Pointcut pointcut) 
    Create a ComposablePointcut based on the given Pointcut.
    Parameters:
    pointcut - the original Pointcut
 public ComposablePointcut(ClassFilter classFilter) 
    Create a ComposablePointcut for the given ClassFilter, with MethodMatcher.TRUE.
    Parameters:
    classFilter - the ClassFilter to use
 public ComposablePointcut(MethodMatcher methodMatcher) 
    Create a ComposablePointcut for the given MethodMatcher, with ClassFilter.TRUE.
    Parameters:
    methodMatcher - the MethodMatcher to use
 public ComposablePointcut(ClassFilter classFilter,
    MethodMatcher methodMatcher) 
    Create a ComposablePointcut for the given ClassFilter and MethodMatcher.
    Parameters:
    classFilter - the ClassFilter to use
    methodMatcher - the MethodMatcher to use
Method from org.springframework.aop.support.ComposablePointcut Summary:
equals,   getClassFilter,   getMethodMatcher,   hashCode,   intersection,   intersection,   intersection,   toString,   union,   union,   union
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.aop.support.ComposablePointcut Detail:
 public boolean equals(Object other) 
 public ClassFilter getClassFilter() 
 public MethodMatcher getMethodMatcher() 
 public int hashCode() 
 public ComposablePointcut intersection(ClassFilter other) 
    Apply an intersection with the given ClassFilter.
 public ComposablePointcut intersection(MethodMatcher other) 
    Apply an intersection with the given MethodMatcher.
 public ComposablePointcut intersection(Pointcut other) 
    Apply an intersection with the given Pointcut.
 public String toString() 
 public ComposablePointcut union(ClassFilter other) 
    Apply a union with the given ClassFilter.
 public ComposablePointcut union(MethodMatcher other) 
    Apply a union with the given MethodMatcher.
 public ComposablePointcut union(Pointcut other) 
    Apply a union with the given Pointcut.

    Note that for a Pointcut union, methods will only match if their original ClassFilter (from the originating Pointcut) matches as well. MethodMatchers and ClassFilters from different Pointcuts will never get interleaved with each other.