01: /**
02: * JOnAS: Java(TM) Open Application Server
03: * Copyright (C) 1999-2004 Bull S.A.
04: * Contact: jonas-team@objectweb.org
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation; either
09: * version 2.1 of the License, or any later version.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: *
16: * You should have received a copy of the GNU Lesser General Public
17: * License along with this library; if not, write to the Free Software
18: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19: * USA
20: *
21: * --------------------------------------------------------------------------
22: * $Id: DeploymentDescEjb1_1.java 5450 2004-09-17 09:44:19Z joaninh $
23: * --------------------------------------------------------------------------
24: */package org.objectweb.jonas_ejb.deployment.api;
25:
26: import org.objectweb.jonas_ejb.deployment.xml.AssemblyDescriptor;
27: import org.objectweb.jonas_ejb.deployment.xml.EjbJar;
28: import org.objectweb.jonas_ejb.deployment.xml.Entity;
29: import org.objectweb.jonas_ejb.deployment.xml.JonasEjbJar;
30: import org.objectweb.jonas_ejb.deployment.xml.JonasEntity;
31: import org.objectweb.jonas_lib.deployment.api.DeploymentDescException;
32: import org.objectweb.jonas_lib.deployment.xml.JLinkedList;
33: import org.objectweb.util.monolog.api.Logger;
34: import org.objectweb.util.monolog.api.BasicLevel;
35:
36: /**
37: * Class to hold meta-information related to the deployment of an ejb-jar 1.1
38: * @author Philippe Durieux (Bull)
39: */
40: public class DeploymentDescEjb1_1 extends DeploymentDesc {
41:
42: /**
43: * constructor
44: */
45: public DeploymentDescEjb1_1(ClassLoader cl, EjbJar ej,
46: JonasEjbJar jej, Logger l, String fileName)
47: throws DeploymentDescException {
48: super (cl, ej, jej, l, fileName);
49: // Trace
50: if (logger.getCurrentIntLevel() == BasicLevel.DEBUG) {
51: logger.log(BasicLevel.DEBUG, "DEPLOYMENT DESCRIPTOR = \n("
52: + this .toString() + "\n)");
53: }
54: }
55:
56: protected BeanDesc newEntityBeanDesc(ClassLoader classLoader,
57: Entity ent, AssemblyDescriptor asd, JonasEntity jEnt,
58: JLinkedList jMDRList) throws DeploymentDescException {
59: return new EntityJdbcCmp1Desc(classLoader, ent, asd, jEnt,
60: jMDRList, fileName);
61: }
62:
63: }
|