001 /** 002 * Licensed to the Apache Software Foundation (ASF) under one or more 003 * contributor license agreements. See the NOTICE file distributed with 004 * this work for additional information regarding copyright ownership. 005 * The ASF licenses this file to You under the Apache License, Version 2.0 006 * (the "License"); you may not use this file except in compliance with 007 * the License. You may obtain a copy of the License at 008 * 009 * http://www.apache.org/licenses/LICENSE-2.0 010 * 011 * Unless required by applicable law or agreed to in writing, software 012 * distributed under the License is distributed on an "AS IS" BASIS, 013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 014 * See the License for the specific language governing permissions and 015 * limitations under the License. 016 */ 017 package org.apache.geronimo.j2ee; 018 019 import java.util.LinkedHashSet; 020 import java.util.jar.JarFile; 021 022 import org.apache.geronimo.kernel.config.ConfigurationModuleType; 023 import org.apache.geronimo.kernel.repository.Environment; 024 import org.apache.geronimo.gbean.AbstractName; 025 import org.apache.geronimo.j2ee.deployment.Module; 026 import org.apache.geronimo.deployment.ModuleList; 027 import org.apache.xmlbeans.XmlObject; 028 029 /** 030 * @version $Revision: 538730 $ $Date: 2007-05-16 17:07:51 -0400 (Wed, 16 May 2007) $ 031 */ 032 public class ApplicationInfo extends Module { 033 private ConfigurationModuleType type; 034 private LinkedHashSet modules; 035 private ModuleList moduleLocations; 036 037 038 public ApplicationInfo(ConfigurationModuleType type, Environment environment, AbstractName baseName, JarFile earFile, XmlObject specDD, XmlObject vendorDD, LinkedHashSet<Module> modules, ModuleList moduleLocations, String originalSpecDD) { 039 super(true, baseName, environment, earFile, "", specDD, vendorDD, originalSpecDD, null, null); 040 assert type != null; 041 assert environment != null; 042 assert modules != null; 043 assert moduleLocations != null; 044 045 this.type = type; 046 this.modules = modules; 047 this.moduleLocations = moduleLocations; 048 } 049 050 public ConfigurationModuleType getType() { 051 return type; 052 } 053 054 public LinkedHashSet getModules() { 055 return modules; 056 } 057 058 public void setModules(LinkedHashSet modules) { 059 this.modules = modules; 060 } 061 062 public ModuleList getModuleLocations() { 063 return moduleLocations; 064 } 065 066 public void setModuleLocations(ModuleList moduleLocations) { 067 this.moduleLocations = moduleLocations; 068 } 069 070 }