1 16 17 package org.springframework.aop.support; 18 19 import org.aopalliance.aop.Advice; 20 21 import org.springframework.aop.ClassFilter; 22 import org.springframework.aop.Pointcut; 23 24 32 public class NameMatchMethodPointcutAdvisor extends AbstractGenericPointcutAdvisor { 33 34 private final NameMatchMethodPointcut pointcut = new NameMatchMethodPointcut(); 35 36 37 public NameMatchMethodPointcutAdvisor() { 38 } 39 40 public NameMatchMethodPointcutAdvisor(Advice advice) { 41 setAdvice(advice); 42 } 43 44 45 50 public void setClassFilter(ClassFilter classFilter) { 51 this.pointcut.setClassFilter(classFilter); 52 } 53 54 60 public void setMappedName(String mappedName) { 61 this.pointcut.setMappedName(mappedName); 62 } 63 64 70 public void setMappedNames(String [] mappedNames) { 71 this.pointcut.setMappedNames(mappedNames); 72 } 73 74 82 public NameMatchMethodPointcut addMethodName(String name) { 83 return this.pointcut.addMethodName(name); 84 } 85 86 87 public Pointcut getPointcut() { 88 return this.pointcut; 89 } 90 91 } 92 | Popular Tags |