1 22 package org.jboss.ejb3.metamodel; 23 24 import java.util.HashMap ; 25 26 import org.jboss.logging.Logger; 27 28 29 35 public class EjbJarDD 36 { 37 private static final Logger log = Logger.getLogger(EjbJarDD.class); 38 39 private String version; 41 42 private String displayName; 43 44 private Relationships relationships; 45 46 private AssemblyDescriptor assemblyDescriptor; 47 48 private Interceptors interceptors; 49 50 private String securityDomain; 52 private String unauthenticatedPrincipal; 53 private String jmxName; 54 55 private HashMap <String , ResourceManager> resourceManagers = new HashMap (); 56 57 private EnterpriseBeans enterpriseBeans; 59 60 public void addResourceManager(ResourceManager manager) 61 { 62 resourceManagers.put(manager.getResourceName(), manager); 63 } 64 65 public String resolveResourceManager(String resourceName) 66 { 67 ResourceManager manager = resourceManagers.get(resourceName); 68 if (manager != null) 69 return manager.getResourceJndiName(); 70 71 return null; 72 } 73 74 public String getSecurityDomain() 75 { 76 return securityDomain; 77 } 78 79 public void setSecurityDomain(String securityDomain) 80 { 81 this.securityDomain = securityDomain; 82 } 83 84 public String getUnauthenticatedPrincipal() 85 { 86 return unauthenticatedPrincipal; 87 } 88 89 public void setUnauthenticatedPrincipal(String unauthenticatedPrincipal) 90 { 91 this.unauthenticatedPrincipal = unauthenticatedPrincipal; 92 } 93 94 public String getJmxName() 95 { 96 return jmxName; 97 } 98 99 public void setJmxName(String jmxName) 100 { 101 this.jmxName = jmxName; 102 } 103 104 public String getVersion() 105 { 106 return version; 107 } 108 109 public void setVersion(String version) 110 { 111 this.version = version; 112 } 113 114 public String getDisplayName() 115 { 116 return displayName; 117 } 118 119 public void setDisplayName(String displayName) 120 { 121 this.displayName = displayName; 122 } 123 124 public EnterpriseBeans getEnterpriseBeans() 125 { 126 return enterpriseBeans; 127 } 128 129 public void setEnterpriseBeans(EnterpriseBeans enterpriseBeans) 130 { 131 this.enterpriseBeans = enterpriseBeans; 132 } 133 134 public Interceptors getInterceptors() 135 { 136 return interceptors; 137 } 138 139 public void setInterceptors(Interceptors interceptors) 140 { 141 this.interceptors = interceptors; 142 } 143 144 public Relationships getRelationships() 145 { 146 return relationships; 147 } 148 149 public void setRelationships(Relationships relationships) 150 { 151 this.relationships = relationships; 152 } 153 154 public AssemblyDescriptor getAssemblyDescriptor() 155 { 156 return assemblyDescriptor; 157 } 158 159 public void setAssemblyDescriptor(AssemblyDescriptor assemblyDescriptor) 160 { 161 this.assemblyDescriptor = assemblyDescriptor; 162 } 163 164 public String toString() 165 { 166 StringBuffer sb = new StringBuffer (100); 167 sb.append('['); 168 sb.append("version=").append(version); 169 sb.append(","); 170 sb.append("displayName=").append(displayName); 171 sb.append(']'); 172 return sb.toString(); 173 } 174 } 175 | Popular Tags |