KickJava   Java API By Example, From Geeks To Geeks.

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


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.ArrayList JavaDoc;
10 import java.util.List JavaDoc;
11
12 import org.jboss.logging.Logger;
13
14 /**
15  * Represents <assembly-descriptor> elements of the ejb-jar.xml deployment descriptor for the 1.4
16  * schema
17  *
18  * @version <tt>$Revision: 1.6.2.1 $</tt>
19  * @author <a HREF="mailto:bdecoste@jboss.com">William DeCoste</a>
20  */

21 public class AssemblyDescriptor
22 {
23    private static final Logger log = Logger.getLogger(AssemblyDescriptor.class);
24    
25    private List JavaDoc securityRoles = new ArrayList JavaDoc();
26
27    private List JavaDoc methodPermissions = new ArrayList JavaDoc();
28
29    private List JavaDoc containerTransactions = new ArrayList JavaDoc();
30    
31    private ExcludeList excludeList;
32    
33    private RemoveList removeList;
34    
35    private InitList initList;
36    
37    private List JavaDoc injects = new ArrayList JavaDoc();
38    
39    private List JavaDoc callbacks = new ArrayList JavaDoc();
40    
41    public InitList getInitList()
42    {
43       return initList;
44    }
45
46    public void setInitList(InitList initList)
47    {
48       this.initList = initList;
49    }
50    
51    public RemoveList getRemoveList()
52    {
53       return removeList;
54    }
55
56    public void setRemoveList(RemoveList removeList)
57    {
58       this.removeList = removeList;
59    }
60    
61    public ExcludeList getExcludeList()
62    {
63       return excludeList;
64    }
65
66    public void setExcludeList(ExcludeList excludeList)
67    {
68       this.excludeList = excludeList;
69    }
70    
71    public List JavaDoc getSecurityRoles()
72    {
73       return securityRoles;
74    }
75
76    public void setSecurityRoles(List JavaDoc securityRoles)
77    {
78       this.securityRoles = securityRoles;
79    }
80
81    public void addSecurityRole(SecurityRole securityRole)
82    {
83       securityRoles.add(securityRole);
84    }
85
86    public List JavaDoc getCallbacks()
87    {
88       return callbacks;
89    }
90
91    public void addCallback(Callback callback)
92    {
93       callbacks.add(callback);
94    }
95    
96    public List JavaDoc getInjects()
97    {
98       return injects;
99    }
100
101    public void addInject(Inject inject)
102    {
103       injects.add(inject);
104    }
105
106    public List JavaDoc getMethodPermissions()
107    {
108       return methodPermissions;
109    }
110
111    public void setMethodPermissions(List JavaDoc methodPermissions)
112    {
113       this.methodPermissions = methodPermissions;
114    }
115
116    public void addMethodPermission(MethodPermission methodPermission)
117    {
118       methodPermissions.add(methodPermission);
119    }
120
121    public List JavaDoc getContainerTransactions()
122    {
123       return containerTransactions;
124    }
125
126    public void setContainerTransactions(List JavaDoc containerTransactions)
127    {
128       this.containerTransactions = containerTransactions;
129    }
130
131    public void addContainerTransaction(ContainerTransaction containerTransaction)
132    {
133       containerTransactions.add(containerTransaction);
134    }
135
136    public String JavaDoc toString()
137    {
138       StringBuffer JavaDoc sb = new StringBuffer JavaDoc(100);
139       sb.append("[");
140       sb.append("securityRoles=").append(securityRoles);
141       sb.append("]");
142       return sb.toString();
143    }
144 }
145
Popular Tags