KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas_ejb > deployment > xml > JonasCommonEjb


1 /**
2  * JOnAS: Java(TM) Open Application Server
3  * Copyright (C) 1999 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  * Initial developer(s): Philippe Coq
22  * --------------------------------------------------------------------------
23  * $Id: JonasCommonEjb.java,v 1.6 2004/12/08 14:05:09 benoitf Exp $
24  * --------------------------------------------------------------------------
25  */

26
27 package org.objectweb.jonas_ejb.deployment.xml;
28
29
30 import org.objectweb.jonas_lib.deployment.xml.AbsJonasEnvironmentElement;
31
32 /**
33  * This interface provides to the value of Xml elements common
34  * for jonas-session/jonas-entity/jonas-mdb
35  * @author Philippe Coq
36  */

37
38 public abstract class JonasCommonEjb extends AbsJonasEnvironmentElement implements JonasCommonEjbXml {
39
40
41     /**
42      * ejb-name
43      */

44     private String JavaDoc ejbName = null;
45
46     /**
47      * jndi-name
48      */

49     private String JavaDoc jndiName = null;
50
51     /**
52      * jndi-local-name
53      */

54     private String JavaDoc jndiLocalName = null;
55
56     /**
57      * max-cache-size
58      */

59     private String JavaDoc maxCacheSize = null;
60
61     /**
62      * min-pool-size
63      */

64     private String JavaDoc minPoolSize = null;
65
66     /**
67      * principal name to use in case of run-as
68      */

69     private String JavaDoc runAsPrincipalName = null;
70
71     /**
72      * ior security config
73      */

74     private IorSecurityConfigMapping iorSecurityConfig = null;
75
76     /**
77      * @return ejb-name element
78      */

79     public String JavaDoc getEjbName() {
80         return ejbName;
81     }
82
83     /**
84      * Set the ejb-name
85      * @param ejbName ejbName
86      */

87     public void setEjbName(String JavaDoc ejbName) {
88         this.ejbName = ejbName;
89     }
90
91      /**
92      * Gets the jndi-name
93      * @return the jndi-name
94      */

95     public String JavaDoc getJndiName() {
96         return jndiName;
97     }
98
99     /**
100      * Set the jndi-name
101      * @param jndiName jndiName
102      */

103     public void setJndiName(String JavaDoc jndiName) {
104         this.jndiName = jndiName;
105     }
106
107      /**
108      * Gets the jndi-local-name
109      * @return the jndi-local-name
110      */

111     public String JavaDoc getJndiLocalName() {
112         return jndiLocalName;
113     }
114
115     /**
116      * Set the jndi-local-name
117      * @param jndiLocalName jndi-local-name
118      */

119     public void setJndiLocalName(String JavaDoc jndiLocalName) {
120         this.jndiLocalName = jndiLocalName;
121     }
122
123     /**
124      * Gets the max-cache-size
125      * @return the max-cache-size
126      */

127     public String JavaDoc getMaxCacheSize() {
128         return maxCacheSize;
129     }
130
131     /**
132      * Set the max-cache-size
133      * @param maxCacheSize maxCacheSize
134      */

135     public void setMaxCacheSize(String JavaDoc maxCacheSize) {
136         this.maxCacheSize = maxCacheSize;
137     }
138
139     /**
140      * Gets the min-pool-size
141      * @return the min-pool-size
142      */

143     public String JavaDoc getMinPoolSize() {
144         return minPoolSize;
145     }
146
147     /**
148      * Set the min-pool-size
149      * @param minPoolSize minPoolSize
150      */

151     public void setMinPoolSize(String JavaDoc minPoolSize) {
152         this.minPoolSize = minPoolSize;
153     }
154
155     /**
156      * @return the runAs Principal name.
157      */

158     public String JavaDoc getRunAsPrincipalName() {
159         return runAsPrincipalName;
160     }
161
162     /**
163      * @param runAsPrincipalName the principal-name to set for run-as
164      */

165     public void setRunAsPrincipalName(String JavaDoc runAsPrincipalName) {
166         this.runAsPrincipalName = runAsPrincipalName;
167     }
168
169     /**
170      * @return Returns the iorSecurityConfig.
171      */

172     public IorSecurityConfigMapping getIorSecurityConfig() {
173         return iorSecurityConfig;
174     }
175     /**
176      * @param iorSecurityConfig The iorSecurityConfig to set.
177      */

178     public void setIorSecurityConfig(IorSecurityConfigMapping iorSecurityConfig) {
179         this.iorSecurityConfig = iorSecurityConfig;
180     }
181 }
182
Popular Tags