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: */package org.apache.geronimo.openejb.deployment;
017:
018: import java.util.jar.JarFile;
019:
020: import org.apache.geronimo.gbean.AbstractName;
021: import org.apache.geronimo.j2ee.deployment.EJBModule;
022: import org.apache.geronimo.j2ee.deployment.annotation.AnnotatedApp;
023: import org.apache.geronimo.kernel.repository.Environment;
024: import org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbGeronimoEjbJarType;
025: import org.apache.openejb.assembler.classic.EjbJarInfo;
026: import org.apache.openejb.config.ConfigurationFactory;
027: import org.apache.openejb.jee.EjbJar;
028: import org.apache.openejb.jee.oejb3.OpenejbJar;
029: import org.apache.xmlbeans.XmlObject;
030:
031: /**
032: * @version $Rev$ $Date$
033: */
034: public class EjbModule extends EJBModule {
035: private String originalSpecDD;
036: private XmlObject specDD;
037: private EjbJarInfo ejbJarInfo;
038: private EjbDeploymentBuilder ejbDeploymentBuilder;
039: private OpenejbGeronimoEjbJarType vendorDD;
040: private final org.apache.openejb.config.EjbModule ejbModule;
041: private final ConfigurationFactory.Chain preAutoConfigDeployer;
042:
043: public EjbModule(org.apache.openejb.config.EjbModule ejbModule,
044: boolean standAlone, AbstractName moduleName,
045: Environment environment, JarFile moduleFile,
046: String targetPath, String ejbJarXml,
047: AnnotatedApp annoatedApp) {
048: super (standAlone, moduleName, environment, moduleFile,
049: targetPath, null, null, ejbJarXml, annoatedApp);
050: this .ejbModule = ejbModule;
051:
052: preAutoConfigDeployer = new ConfigurationFactory.Chain();
053: }
054:
055: @Override
056: public String getOriginalSpecDD() {
057: return originalSpecDD;
058: }
059:
060: public void setOriginalSpecDD(String originalSpecDD) {
061: this .originalSpecDD = originalSpecDD;
062: }
063:
064: @Override
065: public XmlObject getSpecDD() {
066: return specDD;
067: }
068:
069: public void setSpecDD(XmlObject specDD) {
070: this .specDD = specDD;
071: }
072:
073: @Override
074: public OpenejbGeronimoEjbJarType getVendorDD() {
075: return vendorDD;
076: }
077:
078: public void setVendorDD(OpenejbGeronimoEjbJarType vendorDD) {
079: this .vendorDD = vendorDD;
080: }
081:
082: public org.apache.openejb.config.EjbModule getEjbModule() {
083: return ejbModule;
084: }
085:
086: public EjbJarInfo getEjbJarInfo() {
087: return ejbJarInfo;
088: }
089:
090: public void setEjbJarInfo(EjbJarInfo ejbJarInfo) {
091: this .ejbJarInfo = ejbJarInfo;
092: }
093:
094: public EjbDeploymentBuilder getEjbBuilder() {
095: return ejbDeploymentBuilder;
096: }
097:
098: public void setEjbBuilder(EjbDeploymentBuilder ejbDeploymentBuilder) {
099: this .ejbDeploymentBuilder = ejbDeploymentBuilder;
100: }
101:
102: public EjbJar getEjbJar() {
103: return ejbModule.getEjbJar();
104: }
105:
106: public OpenejbJar getOpenejbJar() {
107: return ejbModule.getOpenejbJar();
108: }
109:
110: public ClassLoader getClassLoader() {
111: return ejbModule.getClassLoader();
112: }
113:
114: public void setClassLoader(ClassLoader classLoader) {
115: ejbModule.setClassLoader(classLoader);
116: }
117:
118: public ConfigurationFactory.Chain getPreAutoConfigDeployer() {
119: return preAutoConfigDeployer;
120: }
121: }
|