|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.aop.support.ComposablePointcut
public class ComposablePointcut
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(Pointcut, Pointcut)
method on this class.
Use the Pointcuts.union
method for this.
Pointcuts.union(org.springframework.aop.Pointcut, org.springframework.aop.Pointcut)
,
Serialized FormField Summary |
---|
Fields inherited from interface org.springframework.aop.Pointcut |
---|
TRUE |
Constructor Summary | |
---|---|
ComposablePointcut()
Create a default ComposablePointcut, with ClassFilter.TRUE
and MethodMatcher.TRUE . |
|
ComposablePointcut(ClassFilter classFilter)
Create a ComposablePointcut for the given ClassFilter, with MethodMatcher.TRUE . |
|
ComposablePointcut(ClassFilter classFilter,
MethodMatcher methodMatcher)
Create a ComposablePointcut for the given ClassFilter and MethodMatcher. |
|
ComposablePointcut(MethodMatcher methodMatcher)
Create a ComposablePointcut for the given MethodMatcher, with ClassFilter.TRUE . |
Method Summary | |
---|---|
boolean |
equals(Object other)
|
ClassFilter |
getClassFilter()
Return the ClassFilter for this pointcut. |
MethodMatcher |
getMethodMatcher()
Return the MethodMatcher for this pointcut. |
int |
hashCode()
|
ComposablePointcut |
intersection(ClassFilter filter)
|
ComposablePointcut |
intersection(MethodMatcher mm)
|
ComposablePointcut |
intersection(Pointcut other)
|
String |
toString()
|
ComposablePointcut |
union(ClassFilter filter)
|
ComposablePointcut |
union(MethodMatcher mm)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ComposablePointcut()
ClassFilter.TRUE
and MethodMatcher.TRUE
.
public ComposablePointcut(ClassFilter classFilter)
MethodMatcher.TRUE
.
classFilter
- the ClassFilter to usepublic ComposablePointcut(MethodMatcher methodMatcher)
ClassFilter.TRUE
.
methodMatcher
- the MethodMatcher to usepublic ComposablePointcut(ClassFilter classFilter, MethodMatcher methodMatcher)
classFilter
- the ClassFilter to usemethodMatcher
- the MethodMatcher to useMethod Detail |
---|
public ComposablePointcut union(ClassFilter filter)
public ComposablePointcut intersection(ClassFilter filter)
public ComposablePointcut union(MethodMatcher mm)
public ComposablePointcut intersection(MethodMatcher mm)
public ComposablePointcut intersection(Pointcut other)
public ClassFilter getClassFilter()
Pointcut
getClassFilter
in interface Pointcut
public MethodMatcher getMethodMatcher()
Pointcut
getMethodMatcher
in interface Pointcut
public boolean equals(Object other)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |