KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas_ejb > deployment > api > DeploymentDescEjb1_1


1 /**
2  * JOnAS: Java(TM) Open Application Server
3  * Copyright (C) 1999-2004 Bull S.A.
4  * Contact: jonas-team@objectweb.org
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * 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,v 1.8 2004/09/17 09:44:19 joaninh Exp $
23  * --------------------------------------------------------------------------
24  */

25
26
27 package org.objectweb.jonas_ejb.deployment.api;
28
29 import org.objectweb.jonas_ejb.deployment.xml.AssemblyDescriptor;
30 import org.objectweb.jonas_ejb.deployment.xml.EjbJar;
31 import org.objectweb.jonas_ejb.deployment.xml.Entity;
32 import org.objectweb.jonas_ejb.deployment.xml.JonasEjbJar;
33 import org.objectweb.jonas_ejb.deployment.xml.JonasEntity;
34 import org.objectweb.jonas_lib.deployment.api.DeploymentDescException;
35 import org.objectweb.jonas_lib.deployment.xml.JLinkedList;
36 import org.objectweb.util.monolog.api.Logger;
37 import org.objectweb.util.monolog.api.BasicLevel;
38
39 /**
40  * Class to hold meta-information related to the deployment of an ejb-jar 1.1
41  * @author Philippe Durieux (Bull)
42  */

43 public class DeploymentDescEjb1_1 extends DeploymentDesc {
44
45     /**
46      * constructor
47      */

48     public DeploymentDescEjb1_1(ClassLoader JavaDoc cl, EjbJar ej,
49                                 JonasEjbJar jej, Logger l,
50                                 String JavaDoc fileName)
51         throws DeploymentDescException {
52         super(cl, ej, jej, l, fileName);
53         // Trace
54
if (logger.getCurrentIntLevel() == BasicLevel.DEBUG) {
55             logger.log(BasicLevel.DEBUG, "DEPLOYMENT DESCRIPTOR = \n(" + this.toString() + "\n)");
56         }
57     }
58
59     protected BeanDesc newEntityBeanDesc(ClassLoader JavaDoc classLoader,
60                                          Entity ent,
61                                          AssemblyDescriptor asd,
62                                          JonasEntity jEnt,
63                                          JLinkedList jMDRList) throws DeploymentDescException {
64         return new EntityJdbcCmp1Desc(classLoader, ent, asd, jEnt, jMDRList, fileName);
65     }
66
67 }
68
Popular Tags