KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > easybeans > deployment > xml > struct > AbsBean


1 /**
2  * EasyBeans
3  * Copyright (C) 2006 Bull S.A.S.
4  * Contact: easybeans@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: AbsBean.java 127 2006-03-06 17:51:35Z benoitf $
23  * --------------------------------------------------------------------------
24  */

25
26 package org.objectweb.easybeans.deployment.xml.struct;
27
28 import org.objectweb.easybeans.deployment.xml.struct.common.AbsEnvironment;
29
30 /**
31  * Defines common rules used by Bean (Session, MDB).
32  * @author Florent Benoit
33  *
34  */

35 public class AbsBean extends AbsEnvironment {
36
37     /**
38      * ejb-name.
39      */

40     private String JavaDoc ejbName = null;
41
42     /**
43      * ejb-class.
44      */

45     private String JavaDoc ejbClass = null;
46
47
48     /**
49      * Constructor.
50      */

51     public AbsBean() {
52         super();
53     }
54
55     /**
56      * Gets the ejb-name.
57      * @return the ejb-name
58      */

59     public String JavaDoc getEjbName() {
60         return ejbName;
61     }
62
63     /**
64      * Set the ejb-name.
65      * @param ejbName ejbName
66      */

67     public void setEjbName(final String JavaDoc ejbName) {
68         this.ejbName = ejbName;
69     }
70
71     /**
72      * Gets the ejb-class.
73      * @return the ejb-class
74      */

75     public String JavaDoc getEjbClass() {
76         return ejbClass;
77     }
78
79     /**
80      * Set the ejb-class.
81      * @param ejbClass ejb-class
82      */

83     public void setEjbClass(final String JavaDoc ejbClass) {
84         this.ejbClass = ejbClass;
85     }
86
87 }
88
Popular Tags