01: /**
02: *
03: * Licensed to the Apache Software Foundation (ASF) under one or more
04: * contributor license agreements. See the NOTICE file distributed with
05: * this work for additional information regarding copyright ownership.
06: * The ASF licenses this file to You under the Apache License, Version 2.0
07: * (the "License"); you may not use this file except in compliance with
08: * the License. You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing, software
13: * distributed under the License is distributed on an "AS IS" BASIS,
14: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15: * See the License for the specific language governing permissions and
16: * limitations under the License.
17: */package org.apache.openejb.config.sys;
18:
19: import javax.xml.bind.annotation.XmlAccessType;
20: import javax.xml.bind.annotation.XmlAccessorType;
21: import javax.xml.bind.annotation.XmlAttribute;
22: import javax.xml.bind.annotation.XmlRootElement;
23: import javax.xml.bind.annotation.XmlType;
24:
25: /**
26: * <p>Java class for anonymous complex type.
27: * <p/>
28: * <p>The following schema fragment specifies the expected content contained within this class.
29: * <p/>
30: * <pre>
31: * <complexType>
32: * <simpleContent>
33: * <extension base="<http://www.w3.org/2001/XMLSchema>string">
34: * <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
35: * <attribute name="jar" type="{http://www.openejb.org/System/Configuration}JarFileLocation" />
36: * <attribute name="jndi" type="{http://www.w3.org/2001/XMLSchema}string" />
37: * <attribute name="provider" type="{http://www.w3.org/2001/XMLSchema}string" />
38: * </extension>
39: * </simpleContent>
40: * </complexType>
41: * </pre>
42: */
43: @XmlAccessorType(XmlAccessType.FIELD)
44: @XmlType(name="")
45: @XmlRootElement(name="Resource")
46: public class Resource extends AbstractService {
47: @XmlAttribute
48: protected String jndi;
49:
50: public Resource(String id) {
51: super (id);
52: }
53:
54: public Resource(String id, String type) {
55: super (id, type);
56: }
57:
58: public Resource(String id, String type, String provider) {
59: super (id, type, provider);
60: }
61:
62: public Resource() {
63: }
64:
65: /**
66: * Gets the value of the jndi property.
67: *
68: * @return possible object is
69: * {@link String }
70: */
71: public String getJndi() {
72: return jndi;
73: }
74:
75: /**
76: * Sets the value of the jndi property.
77: *
78: * @param value allowed object is
79: * {@link String }
80: */
81: public void setJndi(String value) {
82: this.jndi = value;
83: }
84: }
|