1 22 package org.jboss.ejb; 23 24 25 31 public class ResourceImpl implements javax.annotation.Resource 32 { 33 private boolean shareable; 34 private AuthenticationType authenticationType; 35 private String name; 36 private Class type = Object .class; 37 private String description; 38 private String mappedName; 39 40 public ResourceImpl() 41 { 42 } 43 44 public String mappedName() { return mappedName; } 45 46 47 48 public String description() 49 { 50 return this.description; 51 } 52 53 public void setDescription(String description) 54 { 55 this.description = description; 56 } 57 58 public AuthenticationType authenticationType() 59 { 60 return authenticationType; 61 } 62 63 public void setAuthenticationType(AuthenticationType authorizationType) 64 { 65 this.authenticationType = authorizationType; 66 } 67 68 public Class type() 69 { 70 return type; 71 } 72 73 public void setType(Class type) 74 { 75 this.type = type; 76 } 77 78 public String name() 79 { 80 return name; 81 } 82 83 public void setName(String name) 84 { 85 this.name = name; 86 } 87 88 public boolean shareable() 89 { 90 return shareable; 91 } 92 93 public void setShareable(boolean shareable) 94 { 95 this.shareable = shareable; 96 } 97 98 public Class annotationType() 99 { 100 return javax.annotation.Resource.class; 101 } 102 } 103 | Popular Tags |