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.deployment;
17:
18: import java.io.IOException;
19: import java.net.URI;
20: import java.net.URISyntaxException;
21: import java.util.jar.JarFile;
22:
23: import org.apache.geronimo.deployment.DeploymentContext;
24: import org.apache.geronimo.gbean.AbstractName;
25: import org.apache.geronimo.j2ee.deployment.annotation.AnnotatedApp;
26: import org.apache.geronimo.kernel.config.ConfigurationModuleType;
27: import org.apache.geronimo.kernel.repository.Environment;
28: import org.apache.xmlbeans.XmlObject;
29:
30: /**
31: * @version $Rev: 534741 $ $Date: 2007-05-03 00:46:25 -0700 (Thu, 03 May 2007) $
32: */
33: public class EJBModule extends Module {
34: private AbstractName moduleCmpEngineName;
35:
36: public EJBModule(boolean standAlone, AbstractName moduleName,
37: Environment environment, JarFile moduleFile,
38: String targetPath, XmlObject specDD, XmlObject vendorDD,
39: String originalSpecDD, AnnotatedApp annotatedApp) {
40: super (standAlone, moduleName, environment, moduleFile,
41: targetPath, specDD, vendorDD, originalSpecDD, null,
42: annotatedApp);
43: }
44:
45: public ConfigurationModuleType getType() {
46: return ConfigurationModuleType.EJB;
47: }
48:
49: public void addClass(URI location, String fqcn, byte[] bytes,
50: DeploymentContext context) throws IOException,
51: URISyntaxException {
52: context.addClass(location, fqcn, bytes);
53: }
54:
55: public AbstractName getModuleCmpEngineName() {
56: return moduleCmpEngineName;
57: }
58:
59: public void setModuleCmpEngineName(AbstractName moduleCmpEngineName) {
60: this.moduleCmpEngineName = moduleCmpEngineName;
61: }
62:
63: }
|