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.XmlElement;
22: import javax.xml.bind.annotation.XmlRootElement;
23: import javax.xml.bind.annotation.XmlType;
24: import java.util.ArrayList;
25: import java.util.List;
26:
27: /**
28: * <p>Java class for anonymous complex type.
29: * <p/>
30: * <p>The following schema fragment specifies the expected content contained within this class.
31: * <p/>
32: * <pre>
33: * <complexType>
34: * <complexContent>
35: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
36: * <sequence>
37: * <element ref="{http://www.openejb.org/Service/Configuration}ServiceProvider" maxOccurs="unbounded"/>
38: * </sequence>
39: * </restriction>
40: * </complexContent>
41: * </complexType>
42: * </pre>
43: */
44: @XmlAccessorType(XmlAccessType.FIELD)
45: @XmlType(name="",propOrder={"serviceProvider"})
46: @XmlRootElement(name="ServiceJar")
47: public class ServicesJar {
48:
49: @XmlElement(name="ServiceProvider",required=true)
50: protected List<ServiceProvider> serviceProvider;
51:
52: /**
53: * Gets the value of the serviceProvider property.
54: * <p/>
55: * <p/>
56: * This accessor method returns a reference to the live list,
57: * not a snapshot. Therefore any modification you make to the
58: * returned list will be present inside the JAXB object.
59: * This is why there is not a <CODE>set</CODE> method for the serviceProvider property.
60: * <p/>
61: * <p/>
62: * For example, to add a new item, do as follows:
63: * <pre>
64: * getServiceProvider().add(newItem);
65: * </pre>
66: * <p/>
67: * <p/>
68: * <p/>
69: * Objects of the following type(s) are allowed in the list
70: * {@link ServiceProvider }
71: */
72: public List<ServiceProvider> getServiceProvider() {
73: if (serviceProvider == null) {
74: serviceProvider = new ArrayList<ServiceProvider>();
75: }
76: return this.serviceProvider;
77: }
78: }
|