KickJava   Java API By Example, From Geeks To Geeks.

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


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: Session.java 503 2006-05-24 13:44:31Z benoitf $
23  * --------------------------------------------------------------------------
24  */

25
26 package org.objectweb.easybeans.deployment.xml.struct;
27
28 import java.util.ArrayList JavaDoc;
29 import java.util.List JavaDoc;
30
31 /**
32  * Defines a representation for <session> element.
33  * @author Florent Benoit
34  */

35 public class Session extends AbsBean {
36
37     /**
38      * Name of this element.
39      */

40     public static final String JavaDoc NAME = "session";
41
42     /**
43      * business-remote interfaces.
44      */

45     private List JavaDoc<String JavaDoc> businessRemoteList = null;
46
47     /**
48      * business-local interfaces.
49      */

50     private List JavaDoc<String JavaDoc> businessLocalList = null;
51
52     /**
53      * Type of session bean (stateless/stateful).
54      */

55     private String JavaDoc sessionType = null;
56
57     /**
58      * Type of transaction.
59      */

60     private String JavaDoc transactionType = null;
61
62     /**
63      * Constructor.
64      */

65     public Session() {
66         super();
67         businessRemoteList = new ArrayList JavaDoc<String JavaDoc>();
68         businessLocalList = new ArrayList JavaDoc<String JavaDoc>();
69
70     }
71
72     /**
73      * Gets the business-remote interface list.
74      * @return business-remote interface list
75      */

76     public List JavaDoc<String JavaDoc> getBusinessRemoteList() {
77         return businessRemoteList;
78     }
79
80     /**
81      * Gets the business-local interface list.
82      * @return business-local interface list
83      */

84     public List JavaDoc<String JavaDoc> getBusinessLocalList() {
85         return businessLocalList;
86     }
87
88     /**
89      * Add the business-remote interface.
90      * @param businessRemote business-remote interface.
91      */

92     public void addBusinessRemote(final String JavaDoc businessRemote) {
93         businessRemoteList.add(businessRemote);
94     }
95
96     /**
97      * Add the business-local interface.
98      * @param businessLocal business-remote interface.
99      */

100     public void addBusinessLocal(final String JavaDoc businessLocal) {
101         businessLocalList.add(businessLocal);
102     }
103
104     /**
105      * Gets the session-type.
106      * @return the session-type.
107      */

108     public String JavaDoc getSessionType() {
109         return sessionType;
110     }
111
112     /**
113      * Set the session-type.
114      * @param sessionType the type of session.
115      */

116     public void setSessionType(final String JavaDoc sessionType) {
117         this.sessionType = sessionType;
118     }
119
120     /**
121      * Gets the transaction-type.
122      * @return the transaction-type
123      */

124     public String JavaDoc getTransactionType() {
125         return transactionType;
126     }
127
128     /**
129      * Set the transaction-type.
130      * @param transactionType transaction-type.
131      */

132     public void setTransactionType(final String JavaDoc transactionType) {
133         this.transactionType = transactionType;
134     }
135
136 }
137
Popular Tags