org.springframework.aop.support
Class ComposablePointcut
java.lang.Object
org.springframework.aop.support.ComposablePointcut
- All Implemented Interfaces:
- Pointcut
- public class ComposablePointcut
- extends java.lang.Object
- 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.
- Since:
- 11-Nov-2003
- Version:
- $Id: ComposablePointcut.java,v 1.5 2004/03/18 02:46:11 trisberg Exp $
- Author:
- Rod Johnson
Fields inherited from interface org.springframework.aop.Pointcut |
TRUE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComposablePointcut
public ComposablePointcut()
ComposablePointcut
public ComposablePointcut(ClassFilter classFilter,
MethodMatcher methodMatcher)
union
public ComposablePointcut union(ClassFilter filter)
intersection
public ComposablePointcut intersection(ClassFilter filter)
union
public ComposablePointcut union(MethodMatcher mm)
intersection
public ComposablePointcut intersection(MethodMatcher mm)
intersection
public ComposablePointcut intersection(Pointcut other)
getClassFilter
public ClassFilter getClassFilter()
- Specified by:
getClassFilter
in interface Pointcut
getMethodMatcher
public MethodMatcher getMethodMatcher()
- Specified by:
getMethodMatcher
in interface Pointcut
Copyright (C) 2003-2004 The Spring Framework Project.