1 25 26 package org.objectweb.easybeans.deployment.annotations.impl; 27 28 import javax.annotation.Resource.AuthenticationType; 29 30 31 35 public class JAnnotationResource { 36 37 40 private String name = null; 41 42 45 private String type = null; 46 47 50 private AuthenticationType authenticationType = null; 51 52 55 private boolean shareable; 56 57 60 private String description = null; 61 62 65 private String mappedName = null; 66 67 71 public JAnnotationResource() { 72 this.name = ""; 74 this.type = "java/lang/Object"; 75 this.authenticationType = AuthenticationType.CONTAINER; 76 shareable = true; 77 description = ""; 78 } 79 80 83 public String getName() { 84 return name; 85 } 86 87 91 public void setName(final String name) { 92 this.name = name; 93 } 94 95 96 99 public AuthenticationType getAuthenticationType() { 100 return authenticationType; 101 } 102 103 104 108 public void setAuthenticationType(final AuthenticationType authenticationType) { 109 this.authenticationType = authenticationType; 110 } 111 112 113 116 public String getDescription() { 117 return description; 118 } 119 120 121 125 public void setDescription(final String description) { 126 this.description = description; 127 } 128 129 130 133 public boolean isShareable() { 134 return shareable; 135 } 136 137 138 142 public void setShareable(final boolean shareable) { 143 this.shareable = shareable; 144 } 145 146 147 150 public String getType() { 151 return type; 152 } 153 154 155 159 public void setType(final String type) { 160 this.type = type; 161 } 162 163 166 public String getMappedName() { 167 return mappedName; 168 } 169 170 174 public void setMappedName(final String mappedName) { 175 this.mappedName = mappedName; 176 } 177 178 181 @Override 182 public String toString() { 183 StringBuilder sb = new StringBuilder (); 184 sb.append(this.getClass().getName().substring(this.getClass().getPackage().getName().length() + 1)); 186 187 sb.append("[name="); 189 sb.append(name); 190 191 sb.append(", type="); 193 sb.append(type); 194 195 sb.append(", authenticationType="); 197 sb.append(authenticationType); 198 199 sb.append(", shareable="); 201 sb.append(shareable); 202 203 sb.append(", description="); 205 sb.append(description); 206 207 sb.append(", mappedName="); 209 sb.append(mappedName); 210 211 sb.append("]"); 212 return sb.toString(); 213 } 214 215 } 216 | Popular Tags |