1 /**
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one or more
4 * contributor license agreements. See the NOTICE file distributed with
5 * this work for additional information regarding copyright ownership.
6 * The ASF licenses this file to You under the Apache License, Version 2.0
7 * (the "License"); you may not use this file except in compliance with
8 * the License. You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18 package org.apache.geronimo.j2ee;
19
20 import java.util.Set;
21 import java.util.LinkedHashSet;
22
23 import org.apache.geronimo.kernel.config.ConfigurationModuleType;
24 import org.apache.geronimo.kernel.repository.Environment;
25 import org.apache.geronimo.gbean.AbstractName;
26 import org.apache.xmlbeans.XmlObject;
27
28 /**
29 * @version $Revision: 470597 $ $Date: 2006-11-02 15:30:55 -0800 (Thu, 02 Nov 2006) $
30 */
31 public class ApplicationInfo {
32 private ConfigurationModuleType type;
33 private Environment environment;
34 private AbstractName baseName;
35 private XmlObject specDD;
36 private XmlObject vendorDD;
37 private LinkedHashSet modules;
38 private Set moduleLocations;
39 private String originalSpecDD;
40
41 public ApplicationInfo() {
42 }
43
44 public ApplicationInfo(ConfigurationModuleType type, Environment environment, AbstractName baseName, XmlObject specDD, XmlObject vendorDD, LinkedHashSet modules, Set moduleLocations, String originalSpecDD) {
45 assert type != null;
46 assert environment != null;
47 assert modules != null;
48 assert moduleLocations != null;
49
50 this.type = type;
51 this.environment = environment;
52 this.baseName = baseName;
53 this.specDD = specDD;
54 this.vendorDD = vendorDD;
55 this.modules = modules;
56 this.moduleLocations = moduleLocations;
57 this.originalSpecDD = originalSpecDD;
58 }
59
60 public ConfigurationModuleType getType() {
61 return type;
62 }
63
64 public void setType(ConfigurationModuleType type) {
65 this.type = type;
66 }
67
68 public Environment getEnvironment() {
69 return environment;
70 }
71
72 public void setEnvironment(Environment environment) {
73 this.environment = environment;
74 }
75
76 public AbstractName getBaseName() {
77 return baseName;
78 }
79
80 public void setBaseName(AbstractName baseName) {
81 this.baseName = baseName;
82 }
83
84 public XmlObject getVendorDD() {
85 return vendorDD;
86 }
87
88 public void setVendorDD(XmlObject vendorDD) {
89 this.vendorDD = vendorDD;
90 }
91
92 public XmlObject getSpecDD() {
93 return specDD;
94 }
95
96 public void setSpecDD(XmlObject specDD) {
97 this.specDD = specDD;
98 }
99
100 public LinkedHashSet getModules() {
101 return modules;
102 }
103
104 public void setModules(LinkedHashSet modules) {
105 this.modules = modules;
106 }
107
108 public Set getModuleLocations() {
109 return moduleLocations;
110 }
111
112 public void setModuleLocations(Set moduleLocations) {
113 this.moduleLocations = moduleLocations;
114 }
115
116 public String getOriginalSpecDD() {
117 return originalSpecDD;
118 }
119
120 public void setOriginalSpecDD(String originalSpecDD) {
121 this.originalSpecDD = originalSpecDD;
122 }
123 }