1 22 package org.jboss.aop; 23 24 import org.jboss.aop.advice.Interceptor; 25 26 import java.lang.reflect.Method ; 27 28 35 public abstract class CallerMethodInfo extends JoinPointInfo 36 { 37 private final Class callingClass; 38 private final Class calledClass; 39 private final Method method; 40 private final long calledMethodHash; 41 42 public CallerMethodInfo(Advisor advisor, Class calledClass, Method m, long calledMethodHash, Interceptor[] in, Class clazz) 43 { 44 super(advisor, clazz); 45 this.calledClass = calledClass; 46 super.setInterceptors(in); 47 this.method = m; 48 this.calledMethodHash = calledMethodHash; 49 this.callingClass = advisor.getClazz(); 50 } 51 52 55 protected CallerMethodInfo(CallerMethodInfo other) 56 { 57 super(other); 58 this.callingClass = other.callingClass; 59 this.calledClass = other.calledClass; 60 this.method = other.method; 61 this.calledMethodHash = other.calledMethodHash; 62 } 63 64 public Class getCallingClass() 65 { 66 return callingClass; 67 } 68 69 public Class getCalledClass() 70 { 71 return calledClass; 72 } 73 74 public Method getMethod() 75 { 76 return method; 77 } 78 79 public long getCalledMethodHash() 80 { 81 return calledMethodHash; 82 } 83 84 85 } 86 | Popular Tags |