01: /**
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * 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: */package org.apache.geronimo.j2ee;
17:
18: import java.util.LinkedHashSet;
19: import java.util.jar.JarFile;
20:
21: import org.apache.geronimo.kernel.config.ConfigurationModuleType;
22: import org.apache.geronimo.kernel.repository.Environment;
23: import org.apache.geronimo.gbean.AbstractName;
24: import org.apache.geronimo.j2ee.deployment.Module;
25: import org.apache.geronimo.deployment.ModuleList;
26: import org.apache.xmlbeans.XmlObject;
27:
28: /**
29: * @version $Revision: 538730 $ $Date: 2007-05-16 14:07:51 -0700 (Wed, 16 May 2007) $
30: */
31: public class ApplicationInfo extends Module {
32: private ConfigurationModuleType type;
33: private LinkedHashSet modules;
34: private ModuleList moduleLocations;
35:
36: public ApplicationInfo(ConfigurationModuleType type,
37: Environment environment, AbstractName baseName,
38: JarFile earFile, XmlObject specDD, XmlObject vendorDD,
39: LinkedHashSet<Module> modules, ModuleList moduleLocations,
40: String originalSpecDD) {
41: super (true, baseName, environment, earFile, "", specDD,
42: vendorDD, originalSpecDD, null, null);
43: assert type != null;
44: assert environment != null;
45: assert modules != null;
46: assert moduleLocations != null;
47:
48: this .type = type;
49: this .modules = modules;
50: this .moduleLocations = moduleLocations;
51: }
52:
53: public ConfigurationModuleType getType() {
54: return type;
55: }
56:
57: public LinkedHashSet getModules() {
58: return modules;
59: }
60:
61: public void setModules(LinkedHashSet modules) {
62: this .modules = modules;
63: }
64:
65: public ModuleList getModuleLocations() {
66: return moduleLocations;
67: }
68:
69: public void setModuleLocations(ModuleList moduleLocations) {
70: this.moduleLocations = moduleLocations;
71: }
72:
73: }
|