001 /** 002 * 003 * Licensed to the Apache Software Foundation (ASF) under one or more 004 * contributor license agreements. See the NOTICE file distributed with 005 * this work for additional information regarding copyright ownership. 006 * The ASF licenses this file to You under the Apache License, Version 2.0 007 * (the "License"); you may not use this file except in compliance with 008 * the License. You may obtain a copy of the License at 009 * 010 * http://www.apache.org/licenses/LICENSE-2.0 011 * 012 * Unless required by applicable law or agreed to in writing, software 013 * distributed under the License is distributed on an "AS IS" BASIS, 014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 015 * See the License for the specific language governing permissions and 016 * limitations under the License. 017 */ 018 package org.apache.geronimo.j2ee; 019 020 import java.util.Set; 021 import java.util.LinkedHashSet; 022 023 import org.apache.geronimo.kernel.config.ConfigurationModuleType; 024 import org.apache.geronimo.kernel.repository.Environment; 025 import org.apache.geronimo.gbean.AbstractName; 026 import org.apache.xmlbeans.XmlObject; 027 028 /** 029 * @version $Revision: 470597 $ $Date: 2006-11-02 15:30:55 -0800 (Thu, 02 Nov 2006) $ 030 */ 031 public class ApplicationInfo { 032 private ConfigurationModuleType type; 033 private Environment environment; 034 private AbstractName baseName; 035 private XmlObject specDD; 036 private XmlObject vendorDD; 037 private LinkedHashSet modules; 038 private Set moduleLocations; 039 private String originalSpecDD; 040 041 public ApplicationInfo() { 042 } 043 044 public ApplicationInfo(ConfigurationModuleType type, Environment environment, AbstractName baseName, XmlObject specDD, XmlObject vendorDD, LinkedHashSet modules, Set moduleLocations, String originalSpecDD) { 045 assert type != null; 046 assert environment != null; 047 assert modules != null; 048 assert moduleLocations != null; 049 050 this.type = type; 051 this.environment = environment; 052 this.baseName = baseName; 053 this.specDD = specDD; 054 this.vendorDD = vendorDD; 055 this.modules = modules; 056 this.moduleLocations = moduleLocations; 057 this.originalSpecDD = originalSpecDD; 058 } 059 060 public ConfigurationModuleType getType() { 061 return type; 062 } 063 064 public void setType(ConfigurationModuleType type) { 065 this.type = type; 066 } 067 068 public Environment getEnvironment() { 069 return environment; 070 } 071 072 public void setEnvironment(Environment environment) { 073 this.environment = environment; 074 } 075 076 public AbstractName getBaseName() { 077 return baseName; 078 } 079 080 public void setBaseName(AbstractName baseName) { 081 this.baseName = baseName; 082 } 083 084 public XmlObject getVendorDD() { 085 return vendorDD; 086 } 087 088 public void setVendorDD(XmlObject vendorDD) { 089 this.vendorDD = vendorDD; 090 } 091 092 public XmlObject getSpecDD() { 093 return specDD; 094 } 095 096 public void setSpecDD(XmlObject specDD) { 097 this.specDD = specDD; 098 } 099 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 }