1 22 package org.jboss.aop; 23 24 import gnu.trove.TLongObjectHashMap; 25 26 31 class MethodInterceptors 32 { 33 Advisor advisor; 34 TLongObjectHashMap infos = new TLongObjectHashMap(); 35 36 public MethodInterceptors(Advisor advisor) 37 { 38 this.advisor = advisor; 39 } 40 41 public long[] keys() 42 { 43 return infos.keys(); 44 } 45 46 public MethodInfo getMethodInfo(long hash) 47 { 48 MethodMatchInfo info = getMatchInfo(hash); 49 if (info != null) 50 { 51 return info.getInfo(); 52 } 53 return null; 54 } 55 56 public MethodMatchInfo getMatchInfo(long hash) 57 { 58 return (MethodMatchInfo)infos.get(hash); 59 } 60 61 public void put(long hash, MethodInfo info) 62 { 63 infos.put(hash, new MethodMatchInfo(advisor, info)); 64 } 65 } 66 | Popular Tags |