01: /**
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * 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: */package org.apache.openejb.jee.oejb2;
17:
18: import javax.xml.bind.annotation.XmlAccessorType;
19: import javax.xml.bind.annotation.XmlAccessType;
20: import javax.xml.bind.annotation.XmlType;
21: import javax.xml.bind.annotation.XmlElement;
22: import java.util.List;
23: import java.util.ArrayList;
24:
25: /**
26: * @version $Rev: 607077 $ $Date: 2007-12-27 06:55:23 -0800 $
27: */
28: @XmlAccessorType(XmlAccessType.FIELD)
29: @XmlType(name="tss-linkType",namespace="http://geronimo.apache.org/xml/ns/j2ee/ejb/openejb-2.0",propOrder={"ejbName","tssName","jndiName"})
30: public class TssLinkType {
31:
32: @XmlElement(name="ejb-name")
33: protected String ejbName;
34:
35: @XmlElement(name="tss-name")
36: protected String tssName;
37:
38: @XmlElement(name="jndi-name")
39: protected List<String> jndiName;
40:
41: public TssLinkType() {
42: }
43:
44: public TssLinkType(String ejbName, String tssName,
45: List<String> jndiName) {
46: this .ejbName = ejbName;
47: this .tssName = tssName;
48: this .jndiName = jndiName;
49: }
50:
51: public String getEjbName() {
52: return ejbName;
53: }
54:
55: public void setEjbName(String ejbName) {
56: this .ejbName = ejbName;
57: }
58:
59: public String getTssName() {
60: return tssName;
61: }
62:
63: public void setTssName(String tssName) {
64: this .tssName = tssName;
65: }
66:
67: public List<String> getJndiName() {
68: if (jndiName == null) {
69: jndiName = new ArrayList<String>();
70: }
71: return jndiName;
72: }
73: }
|