KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > ejb3 > dd > EjbJarDD


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.ejb3.dd;
8
9 import java.util.List JavaDoc;
10 import java.util.ArrayList JavaDoc;
11
12 /**
13  * Represents the ejb-jar.xml deployment descriptor for the 2.1 schema
14  *
15  * @version <tt>$Revision: 1.5.2.2 $</tt>
16  * @author <a HREF="mailto:bdecoste@jboss.com">William DeCoste</a>
17  */

18 public class EjbJarDD
19 {
20
21    // ejb-jar.xml
22
private String JavaDoc version;
23
24    private String JavaDoc displayName;
25
26    private Relationships relationships;
27
28    private AssemblyDescriptor assemblyDescriptor;
29
30    // jboss.xml
31
private String JavaDoc securityDomain;
32    
33    private LoaderRepository loaderRepository;
34
35    // both
36
private EnterpriseBeans enterpriseBeans;
37    
38    public LoaderRepository getLoaderRepository()
39    {
40       return loaderRepository;
41    }
42
43    public void setLoaderRepository(LoaderRepository loaderRepository)
44    {
45       this.loaderRepository = loaderRepository;
46    }
47
48    public String JavaDoc getSecurityDomain()
49    {
50       return securityDomain;
51    }
52
53    public void setSecurityDomain(String JavaDoc securityDomain)
54    {
55       this.securityDomain = securityDomain;
56    }
57
58    public String JavaDoc getVersion()
59    {
60       return version;
61    }
62
63    public void setVersion(String JavaDoc version)
64    {
65       this.version = version;
66    }
67
68    public String JavaDoc getDisplayName()
69    {
70       return displayName;
71    }
72
73    public void setDisplayName(String JavaDoc displayName)
74    {
75       this.displayName = displayName;
76    }
77
78    public EnterpriseBeans getEnterpriseBeans()
79    {
80       return enterpriseBeans;
81    }
82
83    public void setEnterpriseBeans(EnterpriseBeans enterpriseBeans)
84    {
85       this.enterpriseBeans = enterpriseBeans;
86    }
87
88    public Relationships getRelationships()
89    {
90       return relationships;
91    }
92
93    public void setRelationships(Relationships relationships)
94    {
95       this.relationships = relationships;
96    }
97
98    public AssemblyDescriptor getAssemblyDescriptor()
99    {
100       return assemblyDescriptor;
101    }
102
103    public void setAssemblyDescriptor(AssemblyDescriptor assemblyDescriptor)
104    {
105       this.assemblyDescriptor = assemblyDescriptor;
106    }
107
108    public String JavaDoc toString()
109    {
110       StringBuffer JavaDoc sb = new StringBuffer JavaDoc(100);
111       sb.append('[');
112       sb.append("version=").append(version);
113       sb.append(",");
114       sb.append("displayName=").append(displayName);
115       sb.append(']');
116       return sb.toString();
117    }
118 }
119
Popular Tags