1 22 package org.jboss.aop; 23 24 import org.jboss.aop.advice.Interceptor; 25 26 import java.lang.reflect.Constructor ; 27 import java.lang.reflect.Method ; 28 29 36 public abstract class CallerConstructorInfo extends JoinPointInfo 37 { 38 private final Constructor constructor; 39 private final Class callingClass; 40 private final Method wrappingMethod; 41 private final long calledConHash; 42 private final Class calledClass; 43 44 public CallerConstructorInfo(Advisor advisor, Class calledClass, Constructor called, long calledConHash, Method wrappingMethod, Interceptor[] in, Class clazz) 45 { 46 super(advisor, clazz); 47 this.calledClass = calledClass; 48 super.setInterceptors(in); 49 this.constructor = called; 50 this.calledConHash = calledConHash; 51 this.callingClass = advisor.getClazz(); 52 this.wrappingMethod = wrappingMethod; 53 } 54 55 58 protected CallerConstructorInfo(CallerConstructorInfo other) 59 { 60 super(other); 61 this.constructor = other.constructor; 62 this.callingClass = other.callingClass; 63 this.wrappingMethod = other.wrappingMethod; 64 this.calledConHash = other.getCalledConHash(); 65 this.calledClass = other.calledClass; 66 } 67 68 public Constructor getConstructor() 69 { 70 return constructor; 71 } 72 73 public Class getCallingClass() 74 { 75 return callingClass; 76 } 77 78 public Method getWrappingMethod() 79 { 80 return wrappingMethod; 81 } 82 83 public long getCalledConHash() 84 { 85 return calledConHash; 86 } 87 88 public Class getCalledClass() 89 { 90 return calledClass; 91 } 92 } 93 | Popular Tags |