1 22 package org.jboss.aop.instrument; 23 24 25 32 public final class JoinpointClassification 33 { 34 37 public static JoinpointClassification NOT_INSTRUMENTED = new JoinpointClassification("not instrumented"); 38 39 42 public static JoinpointClassification PREPARED = new JoinpointClassification("prepared"); 43 44 47 public static JoinpointClassification WRAPPED = new JoinpointClassification("wrapped"); 48 49 60 public static JoinpointClassification DYNAMICALY_WRAPPED = new JoinpointClassification(WRAPPED, "dynamicaly wrapped"); 61 62 63 64 private String description; 65 private boolean dynamicAop; 66 private JoinpointClassification counterPart; 67 68 72 private JoinpointClassification(String description) { 73 this.description = description; 74 this.dynamicAop = false; 75 } 76 77 81 private JoinpointClassification(JoinpointClassification counterpart, String description) { 82 this(description); 83 this.counterPart = counterpart; 84 this.dynamicAop = true; 85 } 86 87 90 public String toString() { 91 return this.description; 92 } 93 94 public boolean equals(Object other) 95 { 96 if (other == counterPart) 97 { 98 return true; 99 } 100 return super.equals(other); 101 } 102 } | Popular Tags |