001: /**
002: * JOnAS: Java(TM) Open Application Server
003: * Copyright (C) 1999 Bull S.A.
004: * Contact: jonas-team@objectweb.org
005: *
006: * This library is free software; you can redistribute it and/or
007: * modify it under the terms of the GNU Lesser General Public
008: * License as published by the Free Software Foundation; either
009: * version 2.1 of the License, or any later version.
010: *
011: * This library is distributed in the hope that it will be useful,
012: * but WITHOUT ANY WARRANTY; without even the implied warranty of
013: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
014: * Lesser General Public License for more details.
015: *
016: * You should have received a copy of the GNU Lesser General Public
017: * License along with this library; if not, write to the Free Software
018: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
019: * USA
020: *
021: * Initial developer(s): Philippe Coq
022: * --------------------------------------------------------------------------
023: * $Id: JonasCommonEjb.java 8098 2006-03-09 14:15:42Z durieuxp $
024: * --------------------------------------------------------------------------
025: */package org.objectweb.jonas_ejb.deployment.xml;
026:
027: import org.objectweb.jonas_lib.deployment.xml.AbsJonasEnvironmentElement;
028:
029: /**
030: * This interface provides to the value of Xml elements common
031: * for jonas-session/jonas-entity/jonas-mdb
032: * @author Philippe Coq
033: */
034:
035: public abstract class JonasCommonEjb extends AbsJonasEnvironmentElement
036: implements JonasCommonEjbXml {
037:
038: /**
039: * ejb-name
040: */
041: private String ejbName = null;
042:
043: /**
044: * jndi-name
045: */
046: private String jndiName = null;
047:
048: /**
049: * jndi-local-name
050: */
051: private String jndiLocalName = null;
052:
053: /**
054: * max-cache-size
055: */
056: private String maxCacheSize = null;
057:
058: /**
059: * min-pool-size
060: */
061: private String minPoolSize = null;
062:
063: /**
064: * principal name to use in case of run-as
065: */
066: private String runAsPrincipalName = null;
067:
068: /**
069: * ior security config
070: */
071: private IorSecurityConfigMapping iorSecurityConfig = null;
072:
073: /**
074: * cluster-home-distributor
075: */
076: private String clusterHomeDistributor = null;
077:
078: /**
079: * cluster-remote-distributor
080: */
081: private String clusterRemoteDistributor = null;
082:
083: /**
084: * cluster-replicated
085: */
086: private String clusterReplicated = null;
087:
088: /**
089: * @return ejb-name element
090: */
091: public String getEjbName() {
092: return ejbName;
093: }
094:
095: /**
096: * Set the ejb-name
097: * @param ejbName ejbName
098: */
099: public void setEjbName(String ejbName) {
100: this .ejbName = ejbName;
101: }
102:
103: /**
104: * Gets the jndi-name
105: * @return the jndi-name
106: */
107: public String getJndiName() {
108: return jndiName;
109: }
110:
111: /**
112: * Set the jndi-name
113: * @param jndiName jndiName
114: */
115: public void setJndiName(String jndiName) {
116: this .jndiName = jndiName;
117: }
118:
119: /**
120: * Gets the jndi-local-name
121: * @return the jndi-local-name
122: */
123: public String getJndiLocalName() {
124: return jndiLocalName;
125: }
126:
127: /**
128: * Set the jndi-local-name
129: * @param jndiLocalName jndi-local-name
130: */
131: public void setJndiLocalName(String jndiLocalName) {
132: this .jndiLocalName = jndiLocalName;
133: }
134:
135: /**
136: * Gets the max-cache-size
137: * @return the max-cache-size
138: */
139: public String getMaxCacheSize() {
140: return maxCacheSize;
141: }
142:
143: /**
144: * Set the max-cache-size
145: * @param maxCacheSize maxCacheSize
146: */
147: public void setMaxCacheSize(String maxCacheSize) {
148: this .maxCacheSize = maxCacheSize;
149: }
150:
151: /**
152: * Gets the min-pool-size
153: * @return the min-pool-size
154: */
155: public String getMinPoolSize() {
156: return minPoolSize;
157: }
158:
159: /**
160: * Set the min-pool-size
161: * @param minPoolSize minPoolSize
162: */
163: public void setMinPoolSize(String minPoolSize) {
164: this .minPoolSize = minPoolSize;
165: }
166:
167: /**
168: * @return the runAs Principal name.
169: */
170: public String getRunAsPrincipalName() {
171: return runAsPrincipalName;
172: }
173:
174: /**
175: * @param runAsPrincipalName the principal-name to set for run-as
176: */
177: public void setRunAsPrincipalName(String runAsPrincipalName) {
178: this .runAsPrincipalName = runAsPrincipalName;
179: }
180:
181: /**
182: * @return Returns the iorSecurityConfig.
183: */
184: public IorSecurityConfigMapping getIorSecurityConfig() {
185: return iorSecurityConfig;
186: }
187:
188: /**
189: * @param iorSecurityConfig The iorSecurityConfig to set.
190: */
191: public void setIorSecurityConfig(
192: IorSecurityConfigMapping iorSecurityConfig) {
193: this .iorSecurityConfig = iorSecurityConfig;
194: }
195:
196: /**
197: * Gets the cluster-home-distributor
198: * @return the cluster-home-distributor
199: */
200: public String getClusterHomeDistributor() {
201: return clusterHomeDistributor;
202: }
203:
204: /**
205: * Set the cluster-home-distributor
206: * @param clusterHomeDistributor clusterHomeDistributor
207: */
208: public void setClusterHomeDistributor(String clusterHomeDistributor) {
209: this .clusterHomeDistributor = clusterHomeDistributor;
210: }
211:
212: /**
213: * Gets the cluster-remote-distributor
214: * @return the cluster-remote-distributor
215: */
216: public String getClusterRemoteDistributor() {
217: return clusterRemoteDistributor;
218: }
219:
220: /**
221: * Set the cluster-remote-distributor
222: * @param clusterRemoteDistributor clusterRemoteDistributor
223: */
224: public void setClusterRemoteDistributor(
225: String clusterRemoteDistributor) {
226: this .clusterRemoteDistributor = clusterRemoteDistributor;
227: }
228:
229: /**
230: * Gets the cluster-replicated
231: * @return the cluster-replicated
232: */
233: public String getClusterReplicated() {
234: return clusterReplicated;
235: }
236:
237: /**
238: * Set the cluster-replicated
239: * @param clusterReplicated clusterReplicated
240: */
241: public void setClusterReplicated(String clusterReplicated) {
242: this.clusterReplicated = clusterReplicated;
243: }
244:
245: }
|