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;
017:
018: import javax.xml.bind.annotation.XmlAccessType;
019: import javax.xml.bind.annotation.XmlAccessorType;
020: import javax.xml.bind.annotation.XmlAttribute;
021: import javax.xml.bind.annotation.XmlElement;
022: import javax.xml.bind.annotation.XmlID;
023: import javax.xml.bind.annotation.XmlType;
024: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
025: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
026: import java.util.ArrayList;
027: import java.util.List;
028:
029: /**
030: * The resourceadapterType specifies information about the
031: * resource adapter. The information includes fully qualified
032: * resource adapter Java class name, configuration properties,
033: * information specific to the implementation of the resource
034: * adapter library as specified through the
035: * outbound-resourceadapter and inbound-resourceadapter
036: * elements, and an optional set of administered objects.
037: */
038: @XmlAccessorType(XmlAccessType.FIELD)
039: @XmlType(name="resourceadapterType",propOrder={"resourceAdapterClass","configProperty","outboundResourceAdapter","inboundResourceAdapter","adminObject","securityPermission"})
040: public class ResourceAdapter {
041:
042: @XmlElement(name="resourceadapter-class")
043: protected String resourceAdapterClass;
044: @XmlElement(name="config-property")
045: protected List<ConfigProperty> configProperty;
046: @XmlElement(name="outbound-resourceadapter")
047: protected OutboundResourceAdapter outboundResourceAdapter;
048: @XmlElement(name="inbound-resourceadapter")
049: protected InboundResource inboundResourceAdapter;
050: @XmlElement(name="adminobject")
051: protected List<AdminObject> adminObject;
052: @XmlElement(name="security-permission")
053: protected List<SecurityPermission> securityPermission;
054: @XmlAttribute
055: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
056: @XmlID
057: protected String id;
058:
059: public String getResourceAdapterClass() {
060: return resourceAdapterClass;
061: }
062:
063: public void setResourceAdapterClass(String value) {
064: this .resourceAdapterClass = value;
065: }
066:
067: public List<ConfigProperty> getConfigProperty() {
068: if (configProperty == null) {
069: configProperty = new ArrayList<ConfigProperty>();
070: }
071: return this .configProperty;
072: }
073:
074: public OutboundResourceAdapter getOutboundResourceAdapter() {
075: return outboundResourceAdapter;
076: }
077:
078: public void setOutboundResourceAdapter(OutboundResourceAdapter value) {
079: this .outboundResourceAdapter = value;
080: }
081:
082: public InboundResource getInboundResourceAdapter() {
083: return inboundResourceAdapter;
084: }
085:
086: public void setInboundResourceAdapter(InboundResource value) {
087: this .inboundResourceAdapter = value;
088: }
089:
090: public List<AdminObject> getAdminObject() {
091: if (adminObject == null) {
092: adminObject = new ArrayList<AdminObject>();
093: }
094: return this .adminObject;
095: }
096:
097: public List<SecurityPermission> getSecurityPermission() {
098: if (securityPermission == null) {
099: securityPermission = new ArrayList<SecurityPermission>();
100: }
101: return this .securityPermission;
102: }
103:
104: public String getId() {
105: return id;
106: }
107:
108: public void setId(String value) {
109: this.id = value;
110: }
111:
112: }
|