1 16 17 package org.springframework.aop.support; 18 19 import java.io.Serializable ; 20 21 import org.aopalliance.aop.Advice; 22 23 import org.springframework.aop.Pointcut; 24 import org.springframework.aop.PointcutAdvisor; 25 import org.springframework.core.Ordered; 26 import org.springframework.util.Assert; 27 28 37 public abstract class DynamicMethodMatcherPointcutAdvisor extends DynamicMethodMatcherPointcut 38 implements PointcutAdvisor, Ordered, Serializable { 39 40 private int order = Integer.MAX_VALUE; 41 42 private Advice advice; 43 44 45 50 protected DynamicMethodMatcherPointcutAdvisor() { 51 } 52 53 57 protected DynamicMethodMatcherPointcutAdvisor(Advice advice) { 58 Assert.notNull(advice, "Advice must not be null"); 59 this.advice = advice; 60 } 61 62 63 public void setOrder(int order) { 64 this.order = order; 65 } 66 67 public int getOrder() { 68 return this.order; 69 } 70 71 public void setAdvice(Advice advice) { 72 this.advice = advice; 73 } 74 75 public Advice getAdvice() { 76 return this.advice; 77 } 78 79 public boolean isPerInstance() { 80 return true; 81 } 82 83 public final Pointcut getPointcut() { 84 return this; 85 } 86 87 } 88 | Popular Tags |