001: /**
002: * EasyBeans
003: * Copyright (C) 2007 Bull S.A.S.
004: * Contact: easybeans@ow2.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: * --------------------------------------------------------------------------
022: * $Id: MessageDriven.java 2059 2007-11-22 17:22:33Z benoitf $
023: * --------------------------------------------------------------------------
024: */package org.ow2.easybeans.deployment.xml.struct;
025:
026: import java.util.ArrayList;
027: import java.util.List;
028:
029: import org.ow2.easybeans.deployment.xml.struct.common.ActivationConfig;
030:
031: /**
032: * Defines a representation for <message-driven> element.
033: * @author Florent Benoit
034: */
035: public class MessageDriven extends AbsBean {
036:
037: /**
038: * Name of this element.
039: */
040: public static final String NAME = "message-driven";
041:
042: /**
043: * The messaging-type element specifies the message listener interface of
044: * the message-driven bean.
045: */
046: private String messagingType = null;
047:
048: /**
049: * The message destination type.
050: */
051: private String messageDestinationType = null;
052:
053: /**
054: * The message destination link.
055: */
056: private String messageDestinationLink = null;
057:
058: /**
059: * List of activation-config properties.
060: */
061: private List<ActivationConfig> activationConfigList = null;
062:
063: /**
064: * Constructor.
065: */
066: public MessageDriven() {
067: super ();
068: this .activationConfigList = new ArrayList<ActivationConfig>();
069: }
070:
071: /**
072: * Set the messaging-type.
073: * @param messagingType the message listener interface of the message-driven
074: * bean.
075: */
076: public void setMessagingType(final String messagingType) {
077: this .messagingType = messagingType;
078: }
079:
080: /**
081: * Gets the messaging-type.
082: * @return the messaging-type
083: */
084: public String getMessagingType() {
085: return messagingType;
086: }
087:
088: /**
089: * Set the message destination type.
090: * @param messageDestinationType message destination type.
091: */
092: public void setMessageDestinationType(
093: final String messageDestinationType) {
094: this .messageDestinationType = messageDestinationType;
095: }
096:
097: /**
098: * Gets the message destination type.
099: * @return the message destination type
100: */
101: public String getMessageDestinationType() {
102: return messageDestinationType;
103: }
104:
105: /**
106: * Set the message destination link.
107: * @param messageDestinationLink message destination link.
108: */
109: public void setMessageDestinationLink(
110: final String messageDestinationLink) {
111: this .messageDestinationLink = messageDestinationLink;
112: }
113:
114: /**
115: * Gets the message destination link.
116: * @return the message destination link
117: */
118: public String getMessageDestinationLink() {
119: return messageDestinationLink;
120: }
121:
122: /**
123: * Gets the activation-config list.
124: * @return activation-config list
125: */
126: public List<ActivationConfig> getActivationConfigList() {
127: return activationConfigList;
128: }
129:
130: /**
131: * Add the activation-config property.
132: * @param activationConfig activation-config property
133: */
134: public void addActivationConfig(
135: final ActivationConfig activationConfig) {
136: activationConfigList.add(activationConfig);
137: }
138: }
|