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.LinkedHashSet; 20 import java.util.jar.JarFile; 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.geronimo.j2ee.deployment.Module; 26 import org.apache.geronimo.deployment.ModuleList; 27 import org.apache.xmlbeans.XmlObject; 28 29 /** 30 * @version $Revision: 538730 $ $Date: 2007-05-16 14:07:51 -0700 (Wed, 16 May 2007) $ 31 */ 32 public class ApplicationInfo extends Module { 33 private ConfigurationModuleType type; 34 private LinkedHashSet modules; 35 private ModuleList moduleLocations; 36 37 38 public ApplicationInfo(ConfigurationModuleType type, Environment environment, AbstractName baseName, JarFile earFile, XmlObject specDD, XmlObject vendorDD, LinkedHashSet<Module> modules, ModuleList moduleLocations, String originalSpecDD) { 39 super(true, baseName, environment, earFile, "", specDD, vendorDD, originalSpecDD, null, null); 40 assert type != null; 41 assert environment != null; 42 assert modules != null; 43 assert moduleLocations != null; 44 45 this.type = type; 46 this.modules = modules; 47 this.moduleLocations = moduleLocations; 48 } 49 50 public ConfigurationModuleType getType() { 51 return type; 52 } 53 54 public LinkedHashSet getModules() { 55 return modules; 56 } 57 58 public void setModules(LinkedHashSet modules) { 59 this.modules = modules; 60 } 61 62 public ModuleList getModuleLocations() { 63 return moduleLocations; 64 } 65 66 public void setModuleLocations(ModuleList moduleLocations) { 67 this.moduleLocations = moduleLocations; 68 } 69 70 }