1 22 package org.jboss.aop.joinpoint; 23 24 import java.lang.reflect.Constructor ; 25 26 32 public class ConstructorJoinpoint implements Joinpoint 33 { 34 private final Constructor constructor; 35 36 public ConstructorJoinpoint(Constructor con) 37 { 38 this.constructor = con; 39 } 40 41 public boolean equals(Object o) 42 { 43 if (o == null) return false; 44 if (o == this) return true; 45 if (!(o instanceof ConstructorJoinpoint)) return false; 46 ConstructorJoinpoint jp = (ConstructorJoinpoint)o; 47 return constructor.equals(jp.constructor); 48 } 49 50 public int hashCode() 51 { 52 return constructor.hashCode(); 53 } 54 55 public Constructor getConstructor() 56 { 57 return constructor; 58 } 59 60 public String toString() 61 { 62 return constructor.toString(); 63 } 64 } 65 | Popular Tags |