| 1 package org.sapia.soto.aop; 2 3 import org.sapia.soto.reflect.Matcher; 4 5 import java.util.ArrayList ; 6 import java.util.List ; 7 8 9 20 public class MethodPointCut extends Matcher { 21 private List _adviceRefs = new ArrayList (); 22 private List _groupRefs = new ArrayList (); 23 24 27 public MethodPointCut() { 28 super(); 29 } 30 31 64 69 public AdviceRef createAdviceRef() { 70 AdviceRef ref = new AdviceRef(); 71 _adviceRefs.add(ref); 72 73 return ref; 74 } 75 76 81 public GroupRef createGroupRef() { 82 GroupRef ref = new GroupRef(); 83 _groupRefs.add(ref); 84 85 return ref; 86 } 87 88 94 95 115 120 List getAdviceRefs() { 121 return _adviceRefs; 122 } 123 124 129 List getGroupRefs() { 130 return _groupRefs; 131 } 132 133 } 151 | Popular Tags |