geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ammul...@apache.org
Subject cvs commit: incubator-geronimo/modules/core/src/java/org/apache/geronimo/xml/deployment ConnectorLoader.java
Date Mon, 29 Sep 2003 02:01:08 GMT
ammulder    2003/09/28 19:01:08

  Added:       modules/core/src/java/org/apache/geronimo/deployment/model/connector
                        ActivationSpec.java AdminObject.java
                        AuthenticationMechanism.java ConfigProperty.java
                        Configurable.java ConnectionDefinition.java
                        Connector.java ConnectorDocument.java
                        InboundResourceAdapter.java License.java
                        MessageAdapter.java MessageListener.java
                        OutboundResourceAdapter.java
                        RequiredConfigProperty.java ResourceAdapater.java
                        SecurityPermission.java
               modules/core/src/java/org/apache/geronimo/xml/deployment
                        ConnectorLoader.java
  Log:
  Added POJOs for J2CA DD ra.xml
  PR: GERONIMO-96
  Submitted by: gianny DAMOUR
  
  Revision  Changes    Path
  1.1                  incubator-geronimo/modules/core/src/java/org/apache/geronimo/deployment/model/connector/ActivationSpec.java
  
  Index: ActivationSpec.java
  ===================================================================
  /* ====================================================================
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 2003 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software itself,
   *    if and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names "Apache" and "Apache Software Foundation" and
   *    "Apache Geronimo" must not be used to endorse or promote products
   *    derived from this software without prior written permission. For
   *    written permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    "Apache Geronimo", nor may "Apache" appear in their name, without
   *    prior written permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * ====================================================================
   */
  package org.apache.geronimo.deployment.model.connector;
  
  /**
   * JavaBean for the ra.xml tag activationspec    
   * 
   * @version $Revision: 1.1 $ $Date: 2003/09/29 02:01:08 $
   */
  public class ActivationSpec {
      private String activationSpecClass;
      private RequiredConfigProperty[] requiredConfigProperty = new RequiredConfigProperty[0];
  
      public String getActivationSpecClass() {
          return activationSpecClass;
      }
  
      public void setActivationSpecClass(String string) {
          activationSpecClass = string;
      }
  
      public RequiredConfigProperty[] getRequiredConfigProperty() {
          return requiredConfigProperty;
      }
  
      public RequiredConfigProperty getRequiredConfigProperty(int i) {
          return requiredConfigProperty[i];
      }
  
      public void setRequiredConfigProperty(RequiredConfigProperty[] properties) {
          requiredConfigProperty = properties;
      }
  
      public void setRequiredConfigProperty(int i, RequiredConfigProperty properties) {
          requiredConfigProperty[i] = properties;
      }
  }
  
  
  
  1.1                  incubator-geronimo/modules/core/src/java/org/apache/geronimo/deployment/model/connector/AdminObject.java
  
  Index: AdminObject.java
  ===================================================================
  /* ====================================================================
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 2003 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software itself,
   *    if and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names "Apache" and "Apache Software Foundation" and
   *    "Apache Geronimo" must not be used to endorse or promote products
   *    derived from this software without prior written permission. For
   *    written permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    "Apache Geronimo", nor may "Apache" appear in their name, without
   *    prior written permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * ====================================================================
   */
  package org.apache.geronimo.deployment.model.connector;
  
  /**
   * JavaBean for the ra.xml tag adminobject 
   * 
   * @version $Revision: 1.1 $ $Date: 2003/09/29 02:01:08 $
   */
  public class AdminObject implements Configurable {
      private String adminObjectInterface;
      private String adminObjectClass;
      private ConfigProperty[] configProperty = new ConfigProperty[0];
  
      public String getAdminObjectClass() {
          return adminObjectClass;
      }
  
      public String getAdminObjectInterface() {
          return adminObjectInterface;
      }
  
      public ConfigProperty[] getConfigProperty() {
          return configProperty;
      }
  
      public ConfigProperty getConfigProperty(int i) {
          return configProperty[i];
      }
  
      public void setConfigProperty(ConfigProperty[] properties) {
          configProperty = properties;
      }
  
      public void setConfigProperty(int i, ConfigProperty properties) {
          configProperty[i] = properties;
      }
  
      public void setAdminObjectClass(String string) {
          adminObjectClass = string;
      }
  
      public void setAdminObjectInterface(String string) {
          adminObjectInterface = string;
      }
  }
  
  
  
  1.1                  incubator-geronimo/modules/core/src/java/org/apache/geronimo/deployment/model/connector/AuthenticationMechanism.java
  
  Index: AuthenticationMechanism.java
  ===================================================================
  /* ====================================================================
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 2003 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software itself,
   *    if and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names "Apache" and "Apache Software Foundation" and
   *    "Apache Geronimo" must not be used to endorse or promote products
   *    derived from this software without prior written permission. For
   *    written permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    "Apache Geronimo", nor may "Apache" appear in their name, without
   *    prior written permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * ====================================================================
   */
  package org.apache.geronimo.deployment.model.connector;
  
  import org.apache.geronimo.deployment.model.j2ee.Describable;
  
  /**
   * JavaBean for the ra.xml tag authentication-mechanism 
   * 
   * @version $Revision: 1.1 $ $Date: 2003/09/29 02:01:08 $
   */
  public class AuthenticationMechanism extends Describable {
      private String authenticationMechanismType;
      private String credentialInterface;
      
      public String getAuthenticationMechanismType() {
          return authenticationMechanismType;
      }
  
      public String getCredentialInterface() {
          return credentialInterface;
      }
  
      public void setAuthenticationMechanismType(String string) {
          authenticationMechanismType = string;
      }
  
      public void setCredentialInterface(String string) {
          credentialInterface = string;
      }
  }
  
  
  
  1.1                  incubator-geronimo/modules/core/src/java/org/apache/geronimo/deployment/model/connector/ConfigProperty.java
  
  Index: ConfigProperty.java
  ===================================================================
  /* ====================================================================
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 2003 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software itself,
   *    if and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names "Apache" and "Apache Software Foundation" and
   *    "Apache Geronimo" must not be used to endorse or promote products
   *    derived from this software without prior written permission. For
   *    written permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    "Apache Geronimo", nor may "Apache" appear in their name, without
   *    prior written permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * ====================================================================
   */
  package org.apache.geronimo.deployment.model.connector;
  
  import org.apache.geronimo.deployment.model.j2ee.Describable;
  
  /**
   * JavaBean for the ra.xml tag config-property
   * 
   * @version $Revision: 1.1 $ $Date: 2003/09/29 02:01:08 $
   */
  public class ConfigProperty extends Describable {
      private String configPropertyName;
      private String configPropertyType;
      private String configPropertyValue;
      
      public String getConfigPropertyName() {
          return configPropertyName;
      }
  
      public String getConfigPropertyType() {
          return configPropertyType;
      }
  
      public String getConfigPropertyValue() {
          return configPropertyValue;
      }
  
      public void setConfigPropertyName(String string) {
          configPropertyName = string;
      }
  
      public void setConfigPropertyType(String string) {
          configPropertyType = string;
      }
  
      public void setConfigPropertyValue(String string) {
          configPropertyValue = string;
      }
  
  }
  
  
  
  1.1                  incubator-geronimo/modules/core/src/java/org/apache/geronimo/deployment/model/connector/Configurable.java
  
  Index: Configurable.java
  ===================================================================
  /* ====================================================================
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 2003 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software itself,
   *    if and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names "Apache" and "Apache Software Foundation" and
   *    "Apache Geronimo" must not be used to endorse or promote products
   *    derived from this software without prior written permission. For
   *    written permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    "Apache Geronimo", nor may "Apache" appear in their name, without
   *    prior written permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * ====================================================================
   */
  package org.apache.geronimo.deployment.model.connector;
  
  /**
   * Interface for all objects that have a ConfigProperty array.
   *
   * @version $Revision: 1.1 $ $Date: 2003/09/29 02:01:08 $
   */
  public interface Configurable {
      public ConfigProperty[] getConfigProperty();
  
      public ConfigProperty getConfigProperty(int i);
  
      public void setConfigProperty(ConfigProperty[] properties);
  
      public void setConfigProperty(int i, ConfigProperty property);
  }
  
  
  
  1.1                  incubator-geronimo/modules/core/src/java/org/apache/geronimo/deployment/model/connector/ConnectionDefinition.java
  
  Index: ConnectionDefinition.java
  ===================================================================
  /* ====================================================================
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 2003 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software itself,
   *    if and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names "Apache" and "Apache Software Foundation" and
   *    "Apache Geronimo" must not be used to endorse or promote products
   *    derived from this software without prior written permission. For
   *    written permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    "Apache Geronimo", nor may "Apache" appear in their name, without
   *    prior written permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * ====================================================================
   */
  package org.apache.geronimo.deployment.model.connector;
  
  /**
   * JavaBean for the ra.xml tag connection-definition
   * 
   * @version $Revision: 1.1 $ $Date: 2003/09/29 02:01:08 $
   */
  public class ConnectionDefinition implements Configurable {
      private String managedConnectionFactoryClass;
      private ConfigProperty[] configProperty = new ConfigProperty[0];
      private String connectionFactoryInterface;
      private String connectionFactoryImplClass;
      private String connectionInterface;
      private String connectionImplClass;
      
      public ConfigProperty[] getConfigProperty() {
          return configProperty;
      }
  
      public ConfigProperty getConfigProperty(int i) {
          return configProperty[i];
      }
  
      public String getConnectionFactoryImplClass() {
          return connectionFactoryImplClass;
      }
  
      public String getConnectionFactoryInterface() {
          return connectionFactoryInterface;
      }
  
      public String getConnectionImplClass() {
          return connectionImplClass;
      }
  
      public String getConnectionInterface() {
          return connectionInterface;
      }
  
      public String getManagedConnectionFactoryClass() {
          return managedConnectionFactoryClass;
      }
  
      public void setConfigProperty(ConfigProperty[] properties) {
          configProperty = properties;
      }
  
      public void setConfigProperty(int i, ConfigProperty property) {
          configProperty[i] = property;
      }
      
      public void setConnectionFactoryImplClass(String string) {
          connectionFactoryImplClass = string;
      }
  
      public void setConnectionFactoryInterface(String string) {
          connectionFactoryInterface = string;
      }
  
      public void setConnectionImplClass(String string) {
          connectionImplClass = string;
      }
  
      public void setConnectionInterface(String string) {
          connectionInterface = string;
      }
  
      public void setManagedConnectionFactoryClass(String string) {
          managedConnectionFactoryClass = string;
      }
  }
  
  
  
  1.1                  incubator-geronimo/modules/core/src/java/org/apache/geronimo/deployment/model/connector/Connector.java
  
  Index: Connector.java
  ===================================================================
  /* ====================================================================
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 2003 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software itself,
   *    if and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names "Apache" and "Apache Software Foundation" and
   *    "Apache Geronimo" must not be used to endorse or promote products
   *    derived from this software without prior written permission. For
   *    written permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    "Apache Geronimo", nor may "Apache" appear in their name, without
   *    prior written permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * ====================================================================
   */
  package org.apache.geronimo.deployment.model.connector;
  
  import org.apache.geronimo.deployment.model.j2ee.Displayable;
  
  /**
   * JavaBean for the root ra.xml tag connector
   *  
   * @version $Revision: 1.1 $ $Date: 2003/09/29 02:01:08 $
   */
  public class Connector extends Displayable {
      private String vendorName;
      private String eisType;
      private String resourceAdapterVersion;
      private License license;
      private ResourceAdapater resourceAdapter;
      private String version;
      
      public License getLicense() {
          return license;
      }
  
      public ResourceAdapater getResourceAdapter() {
          return resourceAdapter;
      }
  
      public String getResourceAdapterVersion() {
          return resourceAdapterVersion;
      }
  
      public String getVendorName() {
          return vendorName;
      }
  
      public String getVersion() {
          return version;
      }
  
      public void setLicense(License license) {
          this.license = license;
      }
  
      public void setResourceAdapter(ResourceAdapater resourceadapater) {
          resourceAdapter = resourceadapater;
      }
  
      public void setResourceAdapterVersion(String string) {
          resourceAdapterVersion = string;
      }
  
      public void setVendorName(String string) {
          vendorName = string;
      }
  
      public void setVersion(String string) {
          version = string;
      }
  
      public String getEisType() {
          return eisType;
      }
  
      public void setEisType(String string) {
          eisType = string;
      }
  }
  
  
  
  1.1                  incubator-geronimo/modules/core/src/java/org/apache/geronimo/deployment/model/connector/ConnectorDocument.java
  
  Index: ConnectorDocument.java
  ===================================================================
  /* ====================================================================
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 2003 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software itself,
   *    if and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names "Apache" and "Apache Software Foundation" and
   *    "Apache Geronimo" must not be used to endorse or promote products
   *    derived from this software without prior written permission. For
   *    written permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    "Apache Geronimo", nor may "Apache" appear in their name, without
   *    prior written permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * ====================================================================
   */
  package org.apache.geronimo.deployment.model.connector;
  
  import org.apache.geronimo.deployment.model.DeploymentDescriptor;
  
  /**
   * The top-level Deployment Descriptor for <tt>ra.xml</tt>.  It knows the
   * DD file name as well as holding a reference to the root element.
   * 
   * @version $Revision: 1.1 $ $Date: 2003/09/29 02:01:08 $
   */
  public class ConnectorDocument implements DeploymentDescriptor 
  {
  
      private final static String fileName = "ra.xml";
      private Connector connector;
  
      public String getFileName() {
          return fileName;
      }
      
      public Connector getConnector() {
          return connector;
      }
  
      public void setConnector(Connector connector) {
          this.connector = connector;
      }
  
  }
  
  
  
  1.1                  incubator-geronimo/modules/core/src/java/org/apache/geronimo/deployment/model/connector/InboundResourceAdapter.java
  
  Index: InboundResourceAdapter.java
  ===================================================================
  /* ====================================================================
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 2003 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software itself,
   *    if and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names "Apache" and "Apache Software Foundation" and
   *    "Apache Geronimo" must not be used to endorse or promote products
   *    derived from this software without prior written permission. For
   *    written permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    "Apache Geronimo", nor may "Apache" appear in their name, without
   *    prior written permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * ====================================================================
   */
  package org.apache.geronimo.deployment.model.connector;
  
  /**
   * JavaBean for the ra.xml tag inbound-resourceadapter 
   * 
   * @version $Revision: 1.1 $ $Date: 2003/09/29 02:01:08 $
   */
  public class InboundResourceAdapter {
      private MessageAdapter messageAdapter;
      
      public MessageAdapter getMessageAdapter() {
          return messageAdapter;
      }
  
      public void setMessageAdapter(MessageAdapter messageAdapter) {
          this.messageAdapter = messageAdapter;
      }
  }
  
  
  
  1.1                  incubator-geronimo/modules/core/src/java/org/apache/geronimo/deployment/model/connector/License.java
  
  Index: License.java
  ===================================================================
  /* ====================================================================
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 2003 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software itself,
   *    if and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names "Apache" and "Apache Software Foundation" and
   *    "Apache Geronimo" must not be used to endorse or promote products
   *    derived from this software without prior written permission. For
   *    written permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    "Apache Geronimo", nor may "Apache" appear in their name, without
   *    prior written permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * ====================================================================
   */
  package org.apache.geronimo.deployment.model.connector;
  
  import org.apache.geronimo.deployment.model.j2ee.Describable;
  
  /**
   * JavaBean for the root ra.xml tag license
   *
   * @version $Revision: 1.1 $ $Date: 2003/09/29 02:01:08 $
   */
  public class License extends Describable {
      private String licenseRequired;
  
      public String getLicenseRequired() {
          return licenseRequired;
      }
  
      public void setLicenseRequired(String licenseRequired) {
          this.licenseRequired = licenseRequired;
      }
  }
  
  
  
  1.1                  incubator-geronimo/modules/core/src/java/org/apache/geronimo/deployment/model/connector/MessageAdapter.java
  
  Index: MessageAdapter.java
  ===================================================================
  /* ====================================================================
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 2003 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software itself,
   *    if and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names "Apache" and "Apache Software Foundation" and
   *    "Apache Geronimo" must not be used to endorse or promote products
   *    derived from this software without prior written permission. For
   *    written permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    "Apache Geronimo", nor may "Apache" appear in their name, without
   *    prior written permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * ====================================================================
   */
  package org.apache.geronimo.deployment.model.connector;
  
  /**
   * JavaBean for the ra.xml tag messageadapter  
   * 
   * @version $Revision: 1.1 $ $Date: 2003/09/29 02:01:08 $
   */
  public class MessageAdapter {
      private MessageListener[] messageListener = new MessageListener[0];
      
      public MessageListener[] getMessageListener() {
          return messageListener;
      }
  
      public MessageListener getMessageListener(int i) {
          return messageListener[i];
      }
  
      public void setMessageListener(MessageListener[] messagelisteners) {
          messageListener = messagelisteners;
      }
  
      public void setMessageListener(int i, MessageListener messagelisteners) {
          messageListener[i] = messagelisteners;
      }
  }
  
  
  
  1.1                  incubator-geronimo/modules/core/src/java/org/apache/geronimo/deployment/model/connector/MessageListener.java
  
  Index: MessageListener.java
  ===================================================================
  /* ====================================================================
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 2003 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software itself,
   *    if and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names "Apache" and "Apache Software Foundation" and
   *    "Apache Geronimo" must not be used to endorse or promote products
   *    derived from this software without prior written permission. For
   *    written permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    "Apache Geronimo", nor may "Apache" appear in their name, without
   *    prior written permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * ====================================================================
   */
  package org.apache.geronimo.deployment.model.connector;
  
  /**
   * JavaBean for the ra.xml tag messagelistener   
   * 
   * @version $Revision: 1.1 $ $Date: 2003/09/29 02:01:08 $
   */
  public class MessageListener {
      private String messageListenerType;
      private ActivationSpec activationSpec;
      
      public ActivationSpec getActivationSpec() {
          return activationSpec;
      }
  
      public String getMessageListenerType() {
          return messageListenerType;
      }
  
      public void setActivationSpec(ActivationSpec activationSpec) {
          this.activationSpec = activationSpec;
      }
  
      public void setMessageListenerType(String string) {
          messageListenerType = string;
      }
  }
  
  
  
  1.1                  incubator-geronimo/modules/core/src/java/org/apache/geronimo/deployment/model/connector/OutboundResourceAdapter.java
  
  Index: OutboundResourceAdapter.java
  ===================================================================
  /* ====================================================================
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 2003 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software itself,
   *    if and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names "Apache" and "Apache Software Foundation" and
   *    "Apache Geronimo" must not be used to endorse or promote products
   *    derived from this software without prior written permission. For
   *    written permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    "Apache Geronimo", nor may "Apache" appear in their name, without
   *    prior written permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * ====================================================================
   */
  package org.apache.geronimo.deployment.model.connector;
  
  /**
   * JavaBean for the ra.xml tag outbound-resourceadapter 
   * 
   * @version $Revision: 1.1 $ $Date: 2003/09/29 02:01:08 $
   */
  public class OutboundResourceAdapter {
      private ConnectionDefinition[] connectionDefinition = new ConnectionDefinition[0];
      private String transactionSupport;
      private AuthenticationMechanism[] authenticationMechanism = new AuthenticationMechanism[0];
      private String reauthenticationSupport;
  
      public String getReauthenticationSupport() {
          return reauthenticationSupport;
      }
  
      public ConnectionDefinition[] getConnectionDefinition() {
          return connectionDefinition;
      }
  
      public ConnectionDefinition getConnectionDefinition(int i) {
          return connectionDefinition[i];
      }
  
      public void setConnectionDefinition(ConnectionDefinition[] definitions) {
          connectionDefinition = definitions;
      }
  
      public void setConnectionDefinition(int i, ConnectionDefinition definition) {
          connectionDefinition[i] = definition;
      }
      
      public void setReauthenticationSupport(String string) {
          reauthenticationSupport = string;
      }
      
      public AuthenticationMechanism[] getAuthenticationMechanism() {
          return authenticationMechanism;
      }
  
      public AuthenticationMechanism getAuthenticationMechanism(int i) {
          return authenticationMechanism[i];
      }
  
      public void setAuthenticationMechanism(AuthenticationMechanism[] mechanisms) {
          authenticationMechanism = mechanisms;
      }
  
      public void setAuthenticationMechanism(int i, AuthenticationMechanism mechanisms) {
          authenticationMechanism[i] = mechanisms;
      }
  
      public String getTransactionSupport() {
          return transactionSupport;
      }
  
      public void setTransactionSupport(String string) {
          transactionSupport = string;
      }
  }
  
  
  
  1.1                  incubator-geronimo/modules/core/src/java/org/apache/geronimo/deployment/model/connector/RequiredConfigProperty.java
  
  Index: RequiredConfigProperty.java
  ===================================================================
  /* ====================================================================
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 2003 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software itself,
   *    if and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names "Apache" and "Apache Software Foundation" and
   *    "Apache Geronimo" must not be used to endorse or promote products
   *    derived from this software without prior written permission. For
   *    written permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    "Apache Geronimo", nor may "Apache" appear in their name, without
   *    prior written permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * ====================================================================
   */
  package org.apache.geronimo.deployment.model.connector;
  
  import org.apache.geronimo.deployment.model.j2ee.Describable;
  
  /**
   * JavaBean for the ra.xml tag required-config-property     
   * 
   * @version $Revision: 1.1 $ $Date: 2003/09/29 02:01:08 $
   */
  public class RequiredConfigProperty extends Describable {
      private String configPropertyName;
  
      public String getConfigPropertyName() {
          return configPropertyName;
      }
  
      public void setConfigPropertyName(String string) {
          configPropertyName = string;
      }
  }
  
  
  
  1.1                  incubator-geronimo/modules/core/src/java/org/apache/geronimo/deployment/model/connector/ResourceAdapater.java
  
  Index: ResourceAdapater.java
  ===================================================================
  /* ====================================================================
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 2003 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software itself,
   *    if and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names "Apache" and "Apache Software Foundation" and
   *    "Apache Geronimo" must not be used to endorse or promote products
   *    derived from this software without prior written permission. For
   *    written permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    "Apache Geronimo", nor may "Apache" appear in their name, without
   *    prior written permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * ====================================================================
   */
  package org.apache.geronimo.deployment.model.connector;
  
  /**
   * JavaBean for the ra.xml tag resourceadapater
   * 
   * @version $Revision: 1.1 $ $Date: 2003/09/29 02:01:08 $
   */
  public class ResourceAdapater implements Configurable {
      private String resourceAdapterClass;
      private ConfigProperty[] configProperty = new ConfigProperty[0];
      private OutboundResourceAdapter outboundResourceAdapter;
      private InboundResourceAdapter inboundResourceAdapter;
      private AdminObject[] adminObject = new AdminObject[0];
      private SecurityPermission[] securityPermission = new SecurityPermission[0];
      
      public AdminObject[] getAdminObject() {
          return adminObject;
      }
  
      public AdminObject getAdminObject(int i) {
          return adminObject[i];
      }
  
      public void setAdminObject(AdminObject[] adminobjects) {
          adminObject = adminobjects;
      }
  
      public void setAdminObject(int i, AdminObject adminobjects) {
          adminObject[i] = adminobjects;
      }
  
      public ConfigProperty[] getConfigProperty() {
          return configProperty;
      }
  
      public ConfigProperty getConfigProperty(int i) {
          return configProperty[i];
      }
  
      public void setConfigProperty(ConfigProperty[] properties) {
          configProperty = properties;
      }
  
      public void setConfigProperty(int i, ConfigProperty properties) {
          configProperty[i] = properties;
      }
  
      public InboundResourceAdapter getInboundResourceAdapter() {
          return inboundResourceAdapter;
      }
  
      public void setInboundResourceAdapter(InboundResourceAdapter resourceadapter) {
          inboundResourceAdapter = resourceadapter;
      }
  
      public OutboundResourceAdapter getOutboundResourceAdapter() {
          return outboundResourceAdapter;
      }
  
      public void setOutboundResourceAdapter(OutboundResourceAdapter resourceadapter) {
          outboundResourceAdapter = resourceadapter;
      }
  
      public String getResourceAdapterClass() {
          return resourceAdapterClass;
      }
  
      public void setResourceAdapterClass(String string) {
          resourceAdapterClass = string;
      }
  
      public SecurityPermission[] getSecurityPermission() {
          return securityPermission;
      }
  
      public SecurityPermission getSecurityPermission(int i) {
          return securityPermission[i];
      }
  
      public void setSecurityPermission(SecurityPermission[] permissions) {
          securityPermission = permissions;
      }
  
      public void setSecurityPermission(int i, SecurityPermission permissions) {
          securityPermission[i] = permissions;
      }
  }
  
  
  
  1.1                  incubator-geronimo/modules/core/src/java/org/apache/geronimo/deployment/model/connector/SecurityPermission.java
  
  Index: SecurityPermission.java
  ===================================================================
  /* ====================================================================
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 2003 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software itself,
   *    if and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names "Apache" and "Apache Software Foundation" and
   *    "Apache Geronimo" must not be used to endorse or promote products
   *    derived from this software without prior written permission. For
   *    written permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    "Apache Geronimo", nor may "Apache" appear in their name, without
   *    prior written permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * ====================================================================
   */
  package org.apache.geronimo.deployment.model.connector;
  
  import org.apache.geronimo.deployment.model.j2ee.Describable;
  
  /**
   * JavaBean for the ra.xml tag security-permission
   * 
   * @version $Revision: 1.1 $ $Date: 2003/09/29 02:01:08 $
   */
  public class SecurityPermission extends Describable {
      private String securityPermissionSpec;
      
      public String getSecurityPermissionSpec() {
          return securityPermissionSpec;
      }
  
      public void setSecurityPermissionSpec(String string) {
          securityPermissionSpec = string;
      }
  }
  
  
  
  1.1                  incubator-geronimo/modules/core/src/java/org/apache/geronimo/xml/deployment/ConnectorLoader.java
  
  Index: ConnectorLoader.java
  ===================================================================
  /* ====================================================================
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 2003 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software itself,
   *    if and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names "Apache" and "Apache Software Foundation" and
   *    "Apache Geronimo" must not be used to endorse or promote products
   *    derived from this software without prior written permission. For
   *    written permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    "Apache Geronimo", nor may "Apache" appear in their name, without
   *    prior written permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * ====================================================================
   */
  package org.apache.geronimo.xml.deployment;
  
  import org.apache.geronimo.deployment.model.connector.ActivationSpec;
  import org.apache.geronimo.deployment.model.connector.AdminObject;
  import org.apache.geronimo.deployment.model.connector.AuthenticationMechanism;
  import org.apache.geronimo.deployment.model.connector.ConfigProperty;
  import org.apache.geronimo.deployment.model.connector.ConnectionDefinition;
  import org.apache.geronimo.deployment.model.connector.Connector;
  import org.apache.geronimo.deployment.model.connector.ConnectorDocument;
  import org.apache.geronimo.deployment.model.connector.InboundResourceAdapter;
  import org.apache.geronimo.deployment.model.connector.MessageAdapter;
  import org.apache.geronimo.deployment.model.connector.MessageListener;
  import org.apache.geronimo.deployment.model.connector.OutboundResourceAdapter;
  import org.apache.geronimo.deployment.model.connector.RequiredConfigProperty;
  import org.apache.geronimo.deployment.model.connector.ResourceAdapater;
  import org.apache.geronimo.deployment.model.connector.SecurityPermission;
  import org.apache.geronimo.deployment.model.connector.License;
  import org.w3c.dom.Document;
  import org.w3c.dom.Element;
  
  /**
   * Knows how to load a set of POJOs from a DOM representing a ra.xml
   * deployment descriptor.
   * 
   * @version $Revision: 1.1 $ $Date: 2003/09/29 02:01:08 $
   */
  public class ConnectorLoader {
      public static ConnectorDocument load(Document doc) {
          Element root = doc.getDocumentElement();
          if (!"connector".equals(root.getTagName())) {
              throw new IllegalArgumentException("Document is not a ra instance");
          }
          Connector connector = new Connector();
          J2EELoader.loadDisplayable(root, connector);
          connector.setVendorName(LoaderUtil.getChildContent(root, "vendor-name"));
          connector.setEisType(LoaderUtil.getChildContent(root, "eis-type"));
          connector.setResourceAdapterVersion(LoaderUtil.getChildContent(root, "resourceadapter-version"));
          connector.setLicense(loadLicense(LoaderUtil.getChild(root, "license")));
          connector.setResourceAdapter(loadResourceadapater(root));
          connector.setVersion(LoaderUtil.getAttribute(root, "version"));
          ConnectorDocument result = new ConnectorDocument();
          result.setConnector(connector);
          return result;
      }
  
      private static License loadLicense(Element root) {
          License license = new License();
          J2EELoader.loadDescribable(root, license);
          license.setLicenseRequired(LoaderUtil.getChildContent(root, "license-required"));
          return license;
      }
  
      private static ResourceAdapater loadResourceadapater(Element econ) {
          ResourceAdapater ra = null;
          Element era = LoaderUtil.getChild(econ, "resourceadapter");
          if( null != era ) {
              ra = new ResourceAdapater();
              ra.setResourceAdapterClass(LoaderUtil.getChildContent(era, "resourceadapter-class"));
              ra.setConfigProperty(loadConfigProperty(era));
              ra.setOutboundResourceAdapter(loadOutboundResourceadapter(era));
              ra.setInboundResourceAdapter(loadInboundResourceadapter(era));
              ra.setAdminObject(loadAdminobject(era));
              ra.setSecurityPermission(loadSecurityPermission(era));
          }
          return ra;
      }
      
      private static ConfigProperty[] loadConfigProperty(Element era) {
          Element[] roots = LoaderUtil.getChildren(era, "config-property");
          ConfigProperty[] configProperties = new ConfigProperty[roots.length];
          for(int i = 0; i < roots.length; i++) {
              Element root = roots[i];
              configProperties[i] = new ConfigProperty();
              J2EELoader.loadDescribable(root, configProperties[i]);
              configProperties[i].setConfigPropertyName(LoaderUtil.getChildContent(root, "config-property-name"));
              configProperties[i].setConfigPropertyType(LoaderUtil.getChildContent(root, "config-property-type"));
              configProperties[i].setConfigPropertyValue(LoaderUtil.getChildContent(root, "config-property-value"));
          }
          return configProperties;
      }
      
      private static OutboundResourceAdapter loadOutboundResourceadapter(Element era) {
          OutboundResourceAdapter ora = null;
          Element root = LoaderUtil.getChild(era, "outbound-resourceadapter");
          if ( null != root ) {
              ora = new OutboundResourceAdapter();
              ora.setConnectionDefinition(loadConnectionDefinition(root));
              ora.setTransactionSupport(LoaderUtil.getChildContent(root, "transaction-support"));
              ora.setAuthenticationMechanism(loadAuthenticationMechanism(root));
              ora.setReauthenticationSupport(LoaderUtil.getChildContent(root, "reauthentication-support"));
          }
          return ora;
      }
  
      private static ConnectionDefinition[] loadConnectionDefinition(Element ecd) {
          Element[] roots = LoaderUtil.getChildren(ecd, "connection-definition");
          ConnectionDefinition[] conDefinitions = new ConnectionDefinition[roots.length];
          for(int i = 0; i < roots.length; i++) {
              Element root = roots[i];
              conDefinitions[i] = new ConnectionDefinition();
              conDefinitions[i].setManagedConnectionFactoryClass(LoaderUtil.getChildContent(root, "managedconnectionfactory-class"));
              conDefinitions[i].setConfigProperty(loadConfigProperty(root));
              conDefinitions[i].setConnectionFactoryInterface(LoaderUtil.getChildContent(root, "connectionfactory-interface"));
              conDefinitions[i].setConnectionFactoryImplClass(LoaderUtil.getChildContent(root, "connectionfactory-impl-class"));
              conDefinitions[i].setConnectionInterface(LoaderUtil.getChildContent(root, "connection-interface"));
              conDefinitions[i].setConnectionImplClass(LoaderUtil.getChildContent(root, "connection-impl-class"));
          }
          return conDefinitions;
      }
  
      private static AuthenticationMechanism[] loadAuthenticationMechanism(Element era) {
          Element[] roots = LoaderUtil.getChildren(era, "authentication-mechanism");
          AuthenticationMechanism[] authMech = new AuthenticationMechanism[roots.length];
          for(int i = 0; i < roots.length; i++) {
              Element root = roots[i];
              authMech[i] = new AuthenticationMechanism();
              J2EELoader.loadDescribable(root, authMech[i]);
              authMech[i].setAuthenticationMechanismType(LoaderUtil.getChildContent(root, "authentication-mechanism-type"));
              authMech[i].setCredentialInterface(LoaderUtil.getChildContent(root, "credential-interface"));
          }
          return authMech;
      }
  
      private static InboundResourceAdapter loadInboundResourceadapter(Element era) {
          InboundResourceAdapter ira = null;
          Element root = LoaderUtil.getChild(era, "inbound-resourceadapter");
          if ( null != root ) {
              ira = new InboundResourceAdapter();
              ira.setMessageAdapter(loadMessageadapter(root));
          }
          return ira;    
      }
      
      private static MessageAdapter loadMessageadapter(Element eira) {
          MessageAdapter ma = null;
          Element root = LoaderUtil.getChild(eira, "messageadapter");
          if ( null != root ) {
              ma = new MessageAdapter();
              ma.setMessageListener(loadMessagelistener(root));
          }
          return ma;    
      }
  
      private static MessageListener[] loadMessagelistener(Element ema) {
          Element[] roots = LoaderUtil.getChildren(ema, "messagelistener");
          MessageListener[] messLst = new MessageListener[roots.length];
          for(int i = 0; i < roots.length; i++) {
              Element root = roots[i];
              messLst[i] = new MessageListener();
              messLst[i].setMessageListenerType(LoaderUtil.getChildContent(root, "messagelistener-type"));
              messLst[i].setActivationSpec(loadActivationspec(root));
          }
          return messLst;
      }
      
      private static ActivationSpec loadActivationspec(Element eml) {
          ActivationSpec as = null;
          Element root = LoaderUtil.getChild(eml, "activationspec");
          if ( null != root ) {
              as = new ActivationSpec();
              as.setActivationSpecClass(LoaderUtil.getChildContent(root, "activationspec-class"));
              as.setRequiredConfigProperty(loadRequiredConfigProperty(root));
          }
          return as;
      }
      
      private static RequiredConfigProperty[] loadRequiredConfigProperty(Element eas) {
          Element[] roots = LoaderUtil.getChildren(eas, "required-config-property");
          RequiredConfigProperty[] reqConfProps = new RequiredConfigProperty[roots.length];
          for(int i = 0; i < roots.length; i++) {
              Element root = roots[i];
              reqConfProps[i] = new RequiredConfigProperty();
              J2EELoader.loadDescribable(root, reqConfProps[i]);
              reqConfProps[i].setConfigPropertyName(LoaderUtil.getChildContent(root, "config-property-name"));
          }
          return reqConfProps;
      }
      
      private static AdminObject[] loadAdminobject(Element era) {
          Element[] roots = LoaderUtil.getChildren(era, "adminobject");
          AdminObject[] adminObjects = new AdminObject[roots.length];
          for(int i = 0; i < roots.length; i++) {
              Element root = roots[i];
              adminObjects[i] = new AdminObject();
              adminObjects[i].setAdminObjectInterface(LoaderUtil.getChildContent(root, "adminobject-interface"));
              adminObjects[i].setAdminObjectClass(LoaderUtil.getChildContent(root, "adminobject-class"));
              adminObjects[i].setConfigProperty(loadConfigProperty(root));
          }
          return adminObjects;
      }
      
      private static SecurityPermission[] loadSecurityPermission(Element era) {
          Element[] roots = LoaderUtil.getChildren(era, "security-permission");
          SecurityPermission[] secPerms = new SecurityPermission[roots.length];
          for(int i = 0; i < roots.length; i++) {
              Element root = roots[i];
              secPerms[i] = new SecurityPermission();
              J2EELoader.loadDescribable(root, secPerms[i]);
              secPerms[i].setSecurityPermissionSpec(LoaderUtil.getChildContent(root, "security-permission-spec"));
          }
          return secPerms;
      }
  }
  
  
  

Mime
View raw message