org.springframework.aop.support
Class ComposablePointcut


public class ComposablePointcut
implements 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); There is no union() method on this class. Use the Pointcuts.union() method for this.

Author:
Rod Johnson
Version: $Id: ComposablePointcut.java,v 1.4 2004/01/13 09:40:37 johnsonr Exp $
Since: 11-Nov-2003

Constructor Summary
ComposablePointcut()
           
ComposablePointcut(ClassFilter classFilter, MethodMatcher methodMatcher)
           

Method Summary
 ClassFiltergetClassFilter()
           
 MethodMatchergetMethodMatcher()
           
 ComposablePointcutintersection(ClassFilter filter)
           
 ComposablePointcutintersection(MethodMatcher mm)
           
 ComposablePointcutintersection(Pointcut other)
           
 ComposablePointcutunion(ClassFilter filter)
           
 ComposablePointcutunion(MethodMatcher mm)
           

Constructor Detail

ComposablePointcut

public ComposablePointcut()

ComposablePointcut

public ComposablePointcut(ClassFilter classFilter, MethodMatcher methodMatcher)
Method Detail

getClassFilter

public ClassFilter getClassFilter()

getMethodMatcher

public MethodMatcher getMethodMatcher()

intersection

public ComposablePointcut intersection(ClassFilter filter)

intersection

public ComposablePointcut intersection(MethodMatcher mm)

intersection

public ComposablePointcut intersection(Pointcut other)

union

public ComposablePointcut union(ClassFilter filter)

union

public ComposablePointcut union(MethodMatcher mm)

Association Links

to Class org.springframework.aop.ClassFilter

to Class org.springframework.aop.MethodMatcher