KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > geronimo > j2ee > ApplicationInfo


1 /**
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements. See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License. You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */

17 package org.apache.geronimo.j2ee;
18
19 import java.util.Set JavaDoc;
20 import java.util.LinkedHashSet JavaDoc;
21
22 import org.apache.geronimo.kernel.config.ConfigurationModuleType;
23 import org.apache.geronimo.kernel.repository.Environment;
24 import org.apache.geronimo.gbean.AbstractName;
25 import org.apache.xmlbeans.XmlObject;
26
27 /**
28  * @version $Revision: 476049 $ $Date: 2006-11-16 23:35:17 -0500 (Thu, 16 Nov 2006) $
29  */

30 public class ApplicationInfo {
31     private ConfigurationModuleType type;
32     private Environment environment;
33     private AbstractName baseName;
34     private XmlObject specDD;
35     private XmlObject vendorDD;
36     private LinkedHashSet JavaDoc modules;
37     private Set JavaDoc moduleLocations;
38     private String JavaDoc originalSpecDD;
39
40     public ApplicationInfo() {
41     }
42
43     public ApplicationInfo(ConfigurationModuleType type, Environment environment, AbstractName baseName, XmlObject specDD, XmlObject vendorDD, LinkedHashSet JavaDoc modules, Set JavaDoc moduleLocations, String JavaDoc originalSpecDD) {
44         assert type != null;
45         assert environment != null;
46         assert modules != null;
47         assert moduleLocations != null;
48
49         this.type = type;
50         this.environment = environment;
51         this.baseName = baseName;
52         this.specDD = specDD;
53         this.vendorDD = vendorDD;
54         this.modules = modules;
55         this.moduleLocations = moduleLocations;
56         this.originalSpecDD = originalSpecDD;
57     }
58
59     public ConfigurationModuleType getType() {
60         return type;
61     }
62
63     public void setType(ConfigurationModuleType type) {
64         this.type = type;
65     }
66
67     public Environment getEnvironment() {
68         return environment;
69     }
70
71     public void setEnvironment(Environment environment) {
72         this.environment = environment;
73     }
74
75     public AbstractName getBaseName() {
76         return baseName;
77     }
78
79     public void setBaseName(AbstractName baseName) {
80         this.baseName = baseName;
81     }
82
83     public XmlObject getVendorDD() {
84         return vendorDD;
85     }
86
87     public void setVendorDD(XmlObject vendorDD) {
88         this.vendorDD = vendorDD;
89     }
90
91     public XmlObject getSpecDD() {
92         return specDD;
93     }
94
95     public void setSpecDD(XmlObject specDD) {
96         this.specDD = specDD;
97     }
98
99     public LinkedHashSet JavaDoc getModules() {
100         return modules;
101     }
102
103     public void setModules(LinkedHashSet JavaDoc modules) {
104         this.modules = modules;
105     }
106
107     public Set JavaDoc getModuleLocations() {
108         return moduleLocations;
109     }
110
111     public void setModuleLocations(Set JavaDoc moduleLocations) {
112         this.moduleLocations = moduleLocations;
113     }
114
115     public String JavaDoc getOriginalSpecDD() {
116         return originalSpecDD;
117     }
118
119     public void setOriginalSpecDD(String JavaDoc originalSpecDD) {
120         this.originalSpecDD = originalSpecDD;
121     }
122 }
123
Popular Tags