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: *
008: * modify it under the terms of the GNU Lesser General Public
009: * License as published by the Free Software Foundation; either
010: * version 2.1 of the License, or 1any later version.
011: *
012: * This library is distributed in the hope that it will be useful,
013: * but WITHOUT ANY WARRANTY; without even the implied warranty of
014: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015: * Lesser General Public License for more details.
016: *
017: * You should have received a copy of the GNU Lesser General Public
018: * License along with this library; if not, write to the Free Software
019: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
020: * USA
021: *
022: * Initial developer: Eric Hardesty
023: * --------------------------------------------------------------------------
024: * $Id: OutboundResourceadapterDesc.java 5459 2004-09-17 22:33:33Z ehardesty $
025: * --------------------------------------------------------------------------
026: */package org.objectweb.jonas_rar.deployment.api;
027:
028: import java.io.Serializable;
029: import java.util.List;
030:
031: import org.objectweb.jonas_rar.deployment.xml.OutboundResourceadapter;
032:
033: /**
034: * This class defines the implementation of the element outbound-resourceadapter
035: *
036: * @author Eric Hardesty
037: */
038:
039: public class OutboundResourceadapterDesc implements Serializable {
040:
041: /**
042: * connection-definition
043: */
044: private List connectionDefinitionList = null;
045:
046: /**
047: * transaction-support
048: */
049: private String transactionSupport = null;
050:
051: /**
052: * authentication-mechanism
053: */
054: private List authenticationMechanismList = null;
055:
056: /**
057: * reauthentication-support
058: */
059: private String reauthenticationSupport = null;
060:
061: /**
062: * Constructor
063: */
064: public OutboundResourceadapterDesc(OutboundResourceadapter or) {
065: if (or != null) {
066: connectionDefinitionList = Utility.connectionDefinition(or
067: .getConnectionDefinitionList());
068: transactionSupport = or.getTransactionSupport();
069: authenticationMechanismList = or
070: .getAuthenticationMechanismList();
071: reauthenticationSupport = or.getReauthenticationSupport();
072: }
073: }
074:
075: /**
076: * Gets the connection-definition
077: * @return the connection-definition
078: */
079: public List getConnectionDefinitionList() {
080: return connectionDefinitionList;
081: }
082:
083: /**
084: * Gets the transaction-support
085: * @return the transaction-support
086: */
087: public String getTransactionSupport() {
088: return transactionSupport;
089: }
090:
091: /**
092: * Gets the authentication-mechanism
093: * @return the authentication-mechanism
094: */
095: public List getAuthenticationMechanismList() {
096: return authenticationMechanismList;
097: }
098:
099: /**
100: * Gets the reauthentication-support
101: * @return the reauthentication-support
102: */
103: public String getReauthenticationSupport() {
104: return reauthenticationSupport;
105: }
106:
107: }
|