Package org.springframework.aop.support
Class StaticMethodMatcherPointcut
- java.lang.Object
- org.springframework.aop.support.StaticMethodMatcher
- org.springframework.aop.support.StaticMethodMatcherPointcut
- All Implemented Interfaces:
MethodMatcher,Pointcut
- Direct Known Subclasses:
AbstractRegexpMethodPointcut,JCacheOperationSourcePointcut,NameMatchMethodPointcut,StaticMethodMatcherPointcutAdvisor
public abstract class StaticMethodMatcherPointcut extends StaticMethodMatcher implements Pointcut
Convenient superclass when we want to force subclasses to implement theMethodMatcherinterface but subclasses will want to be pointcuts.The
"classFilter"property can be set to customizeClassFilterbehavior. The default isClassFilter.TRUE.- Author:
- Rod Johnson, Juergen Hoeller
Field Summary
Fields inherited from interface org.springframework.aop.MethodMatcher
TRUE
Constructor Summary
Constructors Constructor Description StaticMethodMatcherPointcut()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassFiltergetClassFilter()Return the ClassFilter for this pointcut.MethodMatchergetMethodMatcher()Return the MethodMatcher for this pointcut.voidsetClassFilter(ClassFilter classFilter)Set theClassFilterto use for this pointcut.Methods inherited from class org.springframework.aop.support.StaticMethodMatcher
isRuntime, matches
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.aop.MethodMatcher
matches
Constructor Detail
StaticMethodMatcherPointcut
public StaticMethodMatcherPointcut()
Method Detail
setClassFilter
public void setClassFilter(ClassFilter classFilter)
Set theClassFilterto use for this pointcut. Default isClassFilter.TRUE.
getClassFilter
public ClassFilter getClassFilter()
Description copied from interface:PointcutReturn the ClassFilter for this pointcut.- Specified by:
getClassFilterin interfacePointcut- Returns:
- the ClassFilter (never
null)
getMethodMatcher
public final MethodMatcher getMethodMatcher()
Description copied from interface:PointcutReturn the MethodMatcher for this pointcut.- Specified by:
getMethodMatcherin interfacePointcut- Returns:
- the MethodMatcher (never
null)