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 35 public abstract class StaticMethodMatcherPointcutAdvisor extends StaticMethodMatcherPointcut 36 implements PointcutAdvisor, Ordered, Serializable { 37 38 private int order = Integer.MAX_VALUE; 39 40 private Advice advice; 41 42 43 48 public StaticMethodMatcherPointcutAdvisor() { 49 } 50 51 55 public StaticMethodMatcherPointcutAdvisor(Advice advice) { 56 Assert.notNull(advice, "Advice must not be null"); 57 this.advice = advice; 58 } 59 60 61 public void setOrder(int order) { 62 this.order = order; 63 } 64 65 public int getOrder() { 66 return this.order; 67 } 68 69 public void setAdvice(Advice advice) { 70 this.advice = advice; 71 } 72 73 public Advice getAdvice() { 74 return this.advice; 75 } 76 77 public boolean isPerInstance() { 78 return true; 79 } 80 81 public Pointcut getPointcut() { 82 return this; 83 } 84 85 } 86 | Popular Tags |