1 package org.apache.maven.plugins.ear;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import java.io.File;
23 import java.util.List;
24
25
26
27
28
29
30 class ApplicationXmlWriterContext
31 {
32
33 private String applicationId;
34
35 private final File destinationFile;
36
37 private final List<EarModule> earModules;
38
39 private final List<SecurityRole> securityRoles;
40
41 private final List<EnvEntry> envEntries;
42
43 private final List<EjbRef> ejbEntries;
44
45 private final List<ResourceRef> resourceRefs;
46
47 private final String displayName;
48
49 private final String description;
50
51 private final String libraryDirectory;
52
53 private final String applicationName;
54
55 private final Boolean initializeInOrder;
56
57 ApplicationXmlWriterContext( File destinationFile, List<EarModule> earModules,
58 List<SecurityRole> securityRoles, List<EnvEntry> envEntries,
59 List<EjbRef> ejbEntries, List<ResourceRef> resourceRefs, String displayName,
60 String description, String libraryDirectory, String applicationName,
61 Boolean initializeInOrder )
62 {
63 this.destinationFile = destinationFile;
64 this.earModules = earModules;
65 this.securityRoles = securityRoles;
66 this.envEntries = envEntries;
67 this.ejbEntries = ejbEntries;
68 this.resourceRefs = resourceRefs;
69 this.displayName = displayName;
70 this.description = description;
71 this.libraryDirectory = libraryDirectory;
72 this.applicationName = applicationName;
73 this.initializeInOrder = initializeInOrder;
74 }
75
76 public final ApplicationXmlWriterContext setApplicationId( String applicationId )
77 {
78 this.applicationId = applicationId;
79 return this;
80 }
81
82 public final String getApplicationId()
83 {
84 return applicationId;
85 }
86
87
88
89
90
91
92 public File getDestinationFile()
93 {
94 return destinationFile;
95 }
96
97
98
99
100
101
102 public List<EarModule> getEarModules()
103 {
104 return earModules;
105 }
106
107
108
109
110
111
112 public List<SecurityRole> getSecurityRoles()
113 {
114 return securityRoles;
115 }
116
117
118
119
120
121
122 public List<EnvEntry> getEnvEntries()
123 {
124 return envEntries;
125 }
126
127
128
129
130
131
132 public List<EjbRef> getEjbEntries()
133 {
134 return ejbEntries;
135 }
136
137
138
139
140
141
142 public List<ResourceRef> getResourceRefs()
143 {
144 return resourceRefs;
145 }
146
147
148
149
150
151
152 public String getDisplayName()
153 {
154 return displayName;
155 }
156
157
158
159
160
161
162 public String getDescription()
163 {
164 return description;
165 }
166
167
168
169
170
171
172 public String getLibraryDirectory()
173 {
174 return libraryDirectory;
175 }
176
177
178
179
180
181
182 public String getApplicationName()
183 {
184 return applicationName;
185 }
186
187
188
189
190
191
192 public Boolean getInitializeInOrder()
193 {
194 return initializeInOrder;
195 }
196 }