Save This Page
Home » openejb-3.1.2-src » org.apache » openejb » jee » jba » [javadoc | source]
    1   /**
    2    * Licensed to the Apache Software Foundation (ASF) under one or more
    3    * contributor license agreements.  See the NOTICE file distributed with
    4    * this work for additional information regarding copyright ownership.
    5    * The ASF licenses this file to You under the Apache License, Version 2.0
    6    * (the "License"); you may not use this file except in compliance with
    7    * the License.  You may obtain a copy of the License at
    8    *
    9    *     http://www.apache.org/licenses/LICENSE-2.0
   10    *
   11    * Unless required by applicable law or agreed to in writing, software
   12    * distributed under the License is distributed on an "AS IS" BASIS,
   13    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   14    * See the License for the specific language governing permissions and
   15    * limitations under the License.
   16    */
   17   
   18   package org.apache.openejb.jee.jba;
   19   
   20   import java.util.ArrayList;
   21   import java.util.List;
   22   import javax.xml.bind.annotation.XmlAccessType;
   23   import javax.xml.bind.annotation.XmlAccessorType;
   24   import javax.xml.bind.annotation.XmlElement;
   25   import javax.xml.bind.annotation.XmlRootElement;
   26   import javax.xml.bind.annotation.XmlType;
   27   
   28   
   29   /**
   30    * 
   31    */
   32   @XmlAccessorType(XmlAccessType.FIELD)
   33   @XmlType(name = "", propOrder = {
   34       "invokerProxyBindingName",
   35       "jndiName",
   36       "ejbRef"
   37   })
   38   @XmlRootElement(name = "invoker")
   39   public class Invoker {
   40   
   41       @XmlElement(name = "invoker-proxy-binding-name", required = true)
   42       protected String invokerProxyBindingName;
   43       @XmlElement(name = "jndi-name")
   44       protected JndiName jndiName;
   45       @XmlElement(name = "ejb-ref")
   46       protected List<EjbRef> ejbRef;
   47   
   48       /**
   49        * Gets the value of the invokerProxyBindingName property.
   50        * 
   51        * @return
   52        *     possible object is
   53        *     {@link String }
   54        *     
   55        */
   56       public String getInvokerProxyBindingName() {
   57           return invokerProxyBindingName;
   58       }
   59   
   60       /**
   61        * Sets the value of the invokerProxyBindingName property.
   62        * 
   63        * @param value
   64        *     allowed object is
   65        *     {@link String }
   66        *     
   67        */
   68       public void setInvokerProxyBindingName(String value) {
   69           this.invokerProxyBindingName = value;
   70       }
   71   
   72       /**
   73        * Gets the value of the jndiName property.
   74        * 
   75        * @return
   76        *     possible object is
   77        *     {@link JndiName }
   78        *     
   79        */
   80       public JndiName getJndiName() {
   81           return jndiName;
   82       }
   83   
   84       /**
   85        * Sets the value of the jndiName property.
   86        * 
   87        * @param value
   88        *     allowed object is
   89        *     {@link JndiName }
   90        *     
   91        */
   92       public void setJndiName(JndiName value) {
   93           this.jndiName = value;
   94       }
   95   
   96       /**
   97        * Gets the value of the ejbRef property.
   98        * 
   99        * <p>
  100        * This accessor method returns a reference to the live list,
  101        * not a snapshot. Therefore any modification you make to the
  102        * returned list will be present inside the JAXB object.
  103        * This is why there is not a <CODE>set</CODE> method for the ejbRef property.
  104        * 
  105        * <p>
  106        * For example, to add a new item, do as follows:
  107        * <pre>
  108        *    getEjbRef().add(newItem);
  109        * </pre>
  110        * 
  111        * 
  112        * <p>
  113        * Objects of the following type(s) are allowed in the list
  114        * {@link EjbRef }
  115        * 
  116        * 
  117        */
  118       public List<EjbRef> getEjbRef() {
  119           if (ejbRef == null) {
  120               ejbRef = new ArrayList<EjbRef>();
  121           }
  122           return this.ejbRef;
  123       }
  124   
  125   }

Save This Page
Home » openejb-3.1.2-src » org.apache » openejb » jee » jba » [javadoc | source]