001: /**
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */package org.apache.openejb.jee.jba;
017:
018: import java.util.ArrayList;
019: import java.util.List;
020: import javax.xml.bind.annotation.XmlAccessType;
021: import javax.xml.bind.annotation.XmlAccessorType;
022: import javax.xml.bind.annotation.XmlElement;
023: import javax.xml.bind.annotation.XmlRootElement;
024: import javax.xml.bind.annotation.XmlType;
025:
026: /**
027: *
028: */
029: @XmlAccessorType(XmlAccessType.FIELD)
030: @XmlType(name="",propOrder={"invokerProxyBindingName","jndiName","ejbRef"})
031: @XmlRootElement(name="invoker")
032: public class Invoker {
033:
034: @XmlElement(name="invoker-proxy-binding-name",required=true)
035: protected String invokerProxyBindingName;
036: @XmlElement(name="jndi-name")
037: protected JndiName jndiName;
038: @XmlElement(name="ejb-ref")
039: protected List<EjbRef> ejbRef;
040:
041: /**
042: * Gets the value of the invokerProxyBindingName property.
043: *
044: * @return
045: * possible object is
046: * {@link String }
047: *
048: */
049: public String getInvokerProxyBindingName() {
050: return invokerProxyBindingName;
051: }
052:
053: /**
054: * Sets the value of the invokerProxyBindingName property.
055: *
056: * @param value
057: * allowed object is
058: * {@link String }
059: *
060: */
061: public void setInvokerProxyBindingName(String value) {
062: this .invokerProxyBindingName = value;
063: }
064:
065: /**
066: * Gets the value of the jndiName property.
067: *
068: * @return
069: * possible object is
070: * {@link JndiName }
071: *
072: */
073: public JndiName getJndiName() {
074: return jndiName;
075: }
076:
077: /**
078: * Sets the value of the jndiName property.
079: *
080: * @param value
081: * allowed object is
082: * {@link JndiName }
083: *
084: */
085: public void setJndiName(JndiName value) {
086: this .jndiName = value;
087: }
088:
089: /**
090: * Gets the value of the ejbRef property.
091: *
092: * <p>
093: * This accessor method returns a reference to the live list,
094: * not a snapshot. Therefore any modification you make to the
095: * returned list will be present inside the JAXB object.
096: * This is why there is not a <CODE>set</CODE> method for the ejbRef property.
097: *
098: * <p>
099: * For example, to add a new item, do as follows:
100: * <pre>
101: * getEjbRef().add(newItem);
102: * </pre>
103: *
104: *
105: * <p>
106: * Objects of the following type(s) are allowed in the list
107: * {@link EjbRef }
108: *
109: *
110: */
111: public List<EjbRef> getEjbRef() {
112: if (ejbRef == null) {
113: ejbRef = new ArrayList<EjbRef>();
114: }
115: return this.ejbRef;
116: }
117:
118: }
|