Package org.springframework.aop.support
Class NameMatchMethodPointcutAdvisor
java.lang.Object
org.springframework.aop.support.AbstractPointcutAdvisor
org.springframework.aop.support.AbstractGenericPointcutAdvisor
org.springframework.aop.support.NameMatchMethodPointcutAdvisor
- All Implemented Interfaces:
- Serializable,- Advisor,- PointcutAdvisor,- Ordered
Convenient class for name-match method pointcuts that hold an Advice,
 making them an Advisor.
- Author:
- Juergen Hoeller, Rob Harrop
- See Also:
- 
Field SummaryFields inherited from interface org.springframework.aop.AdvisorEMPTY_ADVICEFields inherited from interface org.springframework.core.OrderedHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionaddMethodName(String name) Add another eligible method name, in addition to those already named.Get the Pointcut that drives this advisor.voidsetClassFilter(ClassFilter classFilter) Set theClassFilterto use for this pointcut.voidsetMappedName(String mappedName) Convenience method when we have only a single method name to match.voidsetMappedNames(String... mappedNames) Set the method names defining methods to match.Methods inherited from class org.springframework.aop.support.AbstractGenericPointcutAdvisorgetAdvice, setAdvice, toStringMethods inherited from class org.springframework.aop.support.AbstractPointcutAdvisorequals, getOrder, hashCode, setOrderMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.aop.AdvisorisPerInstance
- 
Constructor Details- 
NameMatchMethodPointcutAdvisorpublic NameMatchMethodPointcutAdvisor()
- 
NameMatchMethodPointcutAdvisor
 
- 
- 
Method Details- 
setClassFilterSet theClassFilterto use for this pointcut. Default isClassFilter.TRUE.
- 
setMappedNameConvenience method when we have only a single method name to match. Use either this method orsetMappedNames, not both.
- 
setMappedNamesSet the method names defining methods to match. Matching will be the union of all these; if any match, the pointcut matches.
- 
addMethodNameAdd another eligible method name, in addition to those already named. Like the set methods, this method is for use when configuring proxies, before a proxy is used.- Parameters:
- name- the name of the additional method that will match
- Returns:
- this pointcut to allow for multiple additions in one line
- See Also:
 
- 
getPointcutDescription copied from interface:PointcutAdvisorGet the Pointcut that drives this advisor.
 
-