[jboss-cvs] JBossAS SVN: r79285 - in projects/metadata/trunk/src/main/java/org/jboss/metadata/rar: spec and 1 other directory.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Oct 9 01:15:55 EDT 2008
Author: jeff.zhang
Date: 2008-10-09 01:15:53 -0400 (Thu, 09 Oct 2008)
New Revision: 79285
Added:
projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/DependsMetaData.java
projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/JBossRAMetaData.java
projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/RARDeploymentMetaData.java
projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/ActivationspecMetaData.java
projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/AdminObjectMetaData.java
projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/AuthenticationMechanismMetaData.java
projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/ConfigPropertyMetaData.java
projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/ConfigPropertyMetaDataContainer.java
projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/ConnectionDefinitionMetaData.java
projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/ConnectorMetaData.java
projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/DescriptionGroupMetaData.java
projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/DescriptionMetaData.java
projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/DescriptionMetaDataContainer.java
projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/InboundRaMetaData.java
projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/LicenseMetaData.java
projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/MessageAdapterMetaData.java
projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/MessageListenerMetaData.java
projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/OutboundRaMetaData.java
projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/RequiredConfigPropertyMetaData.java
projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/ResourceAdapterMetaData.java
projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/SecurityPermissionMetaData.java
projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/TransactionSupportMetaData.java
Removed:
projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/ActivationspecMetaData.java
projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/AdminObjectMetaData.java
projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/AuthenticationMechanismMetaData.java
projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/ConfigPropertyMetaData.java
projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/ConfigPropertyMetaDataContainer.java
projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/ConnectionDefinitionMetaData.java
projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/ConnectorMetaData.java
projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/DescriptionGroupMetaData.java
projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/DescriptionMetaData.java
projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/DescriptionMetaDataContainer.java
projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/InboundRaMetaData.java
projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/LicenseMetaData.java
projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/MessageAdapterMetaData.java
projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/MessageListenerMetaData.java
projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/OutboundRaMetaData.java
projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/RequiredConfigPropertyMetaData.java
projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/ResourceAdapterMetaData.java
projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/SecurityPermissionMetaData.java
projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/TransactionSupportMetaData.java
projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/DependsMetaData.java
projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/JBossRAMetaData.java
projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/RARDeploymentMetaData.java
Log:
[JBMETA-111] wrong package name :(
Deleted: projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/ActivationspecMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/ActivationspecMetaData.java 2008-10-09 04:45:01 UTC (rev 79284)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/ActivationspecMetaData.java 2008-10-09 05:15:53 UTC (rev 79285)
@@ -1,61 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.metadata.rar.jboss;
-
-
-import java.util.List;
-
-import javax.xml.bind.annotation.XmlElement;
-import org.jboss.metadata.javaee.support.IdMetaDataImpl;
-
-/**
- * Activationspec meta data
- *
- * @author Jeff Zhang
- * @version $Revision: $
- */
-public class ActivationspecMetaData extends IdMetaDataImpl
-{
- private static final long serialVersionUID = -1583292998359427984L;
-
- private String asClass;
- private List<RequiredConfigPropertyMetaData> requiredConfigProps;
-
- @XmlElement(name="activationspec-class")
- public void setAsClass(String asClass) {
- this.asClass = asClass;
- }
-
- public String getAsClass() {
- return asClass;
- }
-
- @XmlElement(name="required-config-property")
- public void setRequiredConfigProps(List<RequiredConfigPropertyMetaData> requiredConfigProps) {
- this.requiredConfigProps = requiredConfigProps;
- }
-
- public List<RequiredConfigPropertyMetaData> getRequiredConfigProps() {
- return requiredConfigProps;
- }
-
-}
Deleted: projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/AdminObjectMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/AdminObjectMetaData.java 2008-10-09 04:45:01 UTC (rev 79284)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/AdminObjectMetaData.java 2008-10-09 05:15:53 UTC (rev 79285)
@@ -1,111 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.metadata.rar.jboss;
-
-import java.util.List;
-
-import javax.xml.bind.annotation.XmlElement;
-
-import org.jboss.metadata.javaee.support.IdMetaDataImpl;
-
-/**
- * Admin object meta data
- *
- * @author <a href="mailto:adrian at jboss.com">Adrian Brock</a>
- * @author Jeff Zhang
- * @version $Revision: 71554 $
- */
-public class AdminObjectMetaData extends IdMetaDataImpl
-{
- private static final long serialVersionUID = 5647786972921112792L;
-
- /** The admin object interface class */
- private String adminObjectInterfaceClass;
-
- /** The admin object implementation class */
- private String adminObjectImplementationClass;
-
- private List<ConfigPropertyMetaData> configProps;
- /**
- * Get the admin object interface class
- *
- * @return the admin object interface class
- */
- public String getAdminObjectInterfaceClass()
- {
- return adminObjectInterfaceClass;
- }
-
- /**
- * Set the admin object interface class
- *
- * @param adminObjectInterfaceClass the class name
- */
- @XmlElement(name="adminobject-interface")
- public void setAdminObjectInterfaceClass(String adminObjectInterfaceClass)
- {
- this.adminObjectInterfaceClass = adminObjectInterfaceClass;
- }
-
- /**
- * Get the admin object implementation class
- *
- * @return the admin object implementation class
- */
- public String getAdminObjectImplementationClass()
- {
- return adminObjectImplementationClass;
- }
-
- /**
- * Set the admin object implementation class
- *
- * @param adminObjectImplementationClass the class name
- */
- @XmlElement(name="adminobject-class")
- public void setAdminObjectImplementationClass(String adminObjectImplementationClass)
- {
- this.adminObjectImplementationClass = adminObjectImplementationClass;
- }
-
- @XmlElement(name="config-property")
- public void setConfigProps(List<ConfigPropertyMetaData> configProps) {
- this.configProps = configProps;
- }
-
- public List<ConfigPropertyMetaData> getConfigProps() {
- return configProps;
- }
-
- public String toString()
- {
- StringBuffer buffer = new StringBuffer();
- buffer.append("AdminObjectMetaData").append('@');
- buffer.append(Integer.toHexString(System.identityHashCode(this)));
- buffer.append("[adminObjectInterfaceClass=").append(adminObjectInterfaceClass);
- buffer.append(" adminObjectImplementationClass=").append(adminObjectImplementationClass);
- //buffer.append(" properties=").append(getProperties());
- buffer.append(']');
- return buffer.toString();
- }
-
-}
Deleted: projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/AuthenticationMechanismMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/AuthenticationMechanismMetaData.java 2008-10-09 04:45:01 UTC (rev 79284)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/AuthenticationMechanismMetaData.java 2008-10-09 05:15:53 UTC (rev 79285)
@@ -1,98 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.metadata.rar.jboss;
-
-import javax.xml.bind.annotation.XmlElement;
-
-import org.jboss.metadata.javaee.support.IdMetaDataImplWithDescriptionGroup;
-
-/**
- * Authentication mechanism meta data
- *
- * @author <a href="mailto:adrian at jboss.com">Adrian Brock</a>
- * @author Jeff Zhang
- * @version $Revision: 71554 $
- */
-public class AuthenticationMechanismMetaData extends IdMetaDataImplWithDescriptionGroup
-{
- static final long serialVersionUID = 1562443409483033688L;
-
- /** The authentication mechanism type */
- private String authenticationMechanismType;
-
- /** The credential interface class */
- private String credentialInterfaceClass;
-
- /**
- * Get the authentication mechanism type
- *
- * @return the authentication mechanism type
- */
- public String getAuthenticationMechansimType()
- {
- return authenticationMechanismType;
- }
-
- /**
- * Set the authentication mechanism type
- *
- * @param authenticationMechanismType the type
- */
- @XmlElement(name="authentication-mechanism-type")
- public void setAuthenticationMechansimType(String authenticationMechanismType)
- {
- this.authenticationMechanismType = authenticationMechanismType;
- }
-
- /**
- * Get the credential interface class
- *
- * @return the credential interface class
- */
- public String getCredentialInterfaceClass()
- {
- return credentialInterfaceClass;
- }
-
- /**
- * Set the credential interface class
- *
- * @param credentialInterfaceClass the class
- */
- @XmlElement(name="credential-interface")
- public void setCredentialInterfaceClass(String credentialInterfaceClass)
- {
- this.credentialInterfaceClass = credentialInterfaceClass;
- }
-
- public String toString()
- {
- StringBuffer buffer = new StringBuffer();
- buffer.append("AuthenticationMechanismMetaData").append('@');
- buffer.append(Integer.toHexString(System.identityHashCode(this)));
- buffer.append("[authenticationMechanismType=").append(authenticationMechanismType);
- buffer.append(" credentialInterfaceClass=").append(credentialInterfaceClass);
- //buffer.append(" descriptions=").append(getDescriptions());
- buffer.append(']');
- return buffer.toString();
- }
-}
Deleted: projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/ConfigPropertyMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/ConfigPropertyMetaData.java 2008-10-09 04:45:01 UTC (rev 79284)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/ConfigPropertyMetaData.java 2008-10-09 05:15:53 UTC (rev 79285)
@@ -1,125 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.metadata.rar.jboss;
-
-import javax.xml.bind.annotation.XmlElement;
-
-import org.jboss.metadata.javaee.support.IdMetaDataImplWithDescriptionGroup;
-
-/**
- * Config property meta data
- *
- * @author <a href="mailto:adrian at jboss.com">Adrian Brock</a>
- * @author Jeff Zhang
- * @version $Revision: 71554 $
- */
-public class ConfigPropertyMetaData extends IdMetaDataImplWithDescriptionGroup
-{
- private static final long serialVersionUID = -3247621229521854849L;
-
- /** The name */
- private String name;
-
- /** The type */
- private String type = "java.lang.String";
-
- /** The value */
- private String value = "";
-
- /**
- * Get the name
- *
- * @return the name
- */
- public String getName()
- {
- return name;
- }
-
- /**
- * Set the name
- *
- * @param name the name
- */
- @XmlElement(name="config-property-name")
- public void setName(String name)
- {
- this.name = name;
- }
-
- /**
- * Get the type
- *
- * @return the type
- */
- public String getType()
- {
- return type;
- }
-
- /**
- * Set the type
- *
- * @param type the type
- */
- @XmlElement(name="config-property-type")
- public void setType(String type)
- {
- this.type = type;
- }
-
- /**
- * Get the value
- *
- * @return the value
- */
- public String getValue()
- {
- return value;
- }
-
- /**
- * Set the value
- *
- * @param value the value
- */
- @XmlElement(name="config-property-value")
- public void setValue(String value)
- {
- this.value = value;
- }
-
- public String toString()
- {
- StringBuffer buffer = new StringBuffer();
- buffer.append("ConfigPropertyMetaData").append('@');
- buffer.append(Integer.toHexString(System.identityHashCode(this)));
- buffer.append("[name=").append(name);
- if (type != null)
- buffer.append(" type=").append(type);
- if (value != null)
- buffer.append(" value=").append(value);
- //buffer.append(" descriptions=").append(getDescriptions());
- buffer.append(']');
- return buffer.toString();
- }
-}
Deleted: projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/ConfigPropertyMetaDataContainer.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/ConfigPropertyMetaDataContainer.java 2008-10-09 04:45:01 UTC (rev 79284)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/ConfigPropertyMetaDataContainer.java 2008-10-09 05:15:53 UTC (rev 79285)
@@ -1,77 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.metadata.rar.jboss;
-
-import java.io.Serializable;
-import java.util.Collection;
-import java.util.HashSet;
-import java.util.Set;
-
-/**
- * An abstract class for meta data that have config properties
- *
- * @author <a href="mailto:adrian at jboss.com">Adrian Brock</a>
- * @version $Revision: 75675 $
- */
-public class ConfigPropertyMetaDataContainer implements Serializable
-{
- static final long serialVersionUID = 2891949219806920844L;
-
- /** The properties by name */
- private Set<ConfigPropertyMetaData> properties = new HashSet<ConfigPropertyMetaData>();
-
- /**
- * Add a property
- *
- * @param cpmd the property
- */
- public void addProperty(ConfigPropertyMetaData cpmd)
- {
- properties.add(cpmd);
- }
-
- /**
- * Get the properties
- *
- * @return the properties
- */
- public Collection<ConfigPropertyMetaData> getProperties()
- {
- return properties;
- }
-
- /**
- * Get the property for a name
- *
- * @param name the name
- * @return the property or null if there is no property with that name
- */
- public ConfigPropertyMetaData getProperty(String name)
- {
- for (ConfigPropertyMetaData cpmd : properties)
- {
- if (cpmd.getName().equals(name))
- return cpmd;
- }
- return null;
- }
-}
Deleted: projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/ConnectionDefinitionMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/ConnectionDefinitionMetaData.java 2008-10-09 04:45:01 UTC (rev 79284)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/ConnectionDefinitionMetaData.java 2008-10-09 05:15:53 UTC (rev 79285)
@@ -1,185 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.metadata.rar.jboss;
-
-import java.util.List;
-import javax.xml.bind.annotation.XmlElement;
-import org.jboss.metadata.javaee.support.IdMetaDataImpl;
-
-/**
- * Connection Definition meta data
- *
- * @author <a href="mailto:adrian at jboss.com">Adrian Brock</a>
- * @author Jeff Zhang
- * @version $Revision: 71554 $
- */
-public class ConnectionDefinitionMetaData extends IdMetaDataImpl
-{
- private static final long serialVersionUID = -138227135002730221L;
-
- /** The managed connection factory class */
- private String managedConnectionFactoryClass;
-
- /** The connector metadata */
- private List<ConfigPropertyMetaData> configProps;
-
- /** The connection factory interface class */
- private String connectionFactoryInterfaceClass;
-
- /** The connection factory implementation class */
- private String connectionFactoryImplementationClass;
-
- /** The connection interface class */
- private String connectionInterfaceClass;
-
- /** The connection implementation class */
- private String connectionImplementationClass;
-
-
-
- /**
- * Get the managed connection factory class
- *
- * @return the managed connection factory class
- */
- public String getManagedConnectionFactoryClass()
- {
- return managedConnectionFactoryClass;
- }
-
- /**
- * Set the managed connection factory class
- *
- * @param managedConnectionFactoryClass the class name
- */
- public void setManagedConnectionFactoryClass(String managedConnectionFactoryClass)
- {
- this.managedConnectionFactoryClass = managedConnectionFactoryClass;
- }
-
- @XmlElement(name="config-property")
- public void setConfigProps(List<ConfigPropertyMetaData> configProps) {
- this.configProps = configProps;
- }
-
- public List<ConfigPropertyMetaData> getConfigProps() {
- return configProps;
- }
- /**
- * Get the connection factory interface class
- *
- * @return the connection factory interface class
- */
- public String getConnectionFactoryInterfaceClass()
- {
- return connectionFactoryInterfaceClass;
- }
-
- /**
- * Set the connection factory interface class
- *
- * @param connectionFactoryInterfaceClass the class name
- */
- @XmlElement(name="connectionfactory-interface")
- public void setConnectionFactoryInterfaceClass(String connectionFactoryInterfaceClass)
- {
- this.connectionFactoryInterfaceClass = connectionFactoryInterfaceClass;
- }
-
- /**
- * Get the connection factory implementation class
- *
- * @return the connection factory implementation class
- */
- public String getConnectionFactoryImplementationClass()
- {
- return connectionFactoryImplementationClass;
- }
-
- /**
- * Set the connection factory implementation class
- *
- * @param connectionFactoryImplementationClass the class name
- */
- @XmlElement(name="connectionfactory-impl-class")
- public void setConnectionFactoryImplementationClass(String connectionFactoryImplementationClass)
- {
- this.connectionFactoryImplementationClass = connectionFactoryImplementationClass;
- }
-
- /**
- * Get the connection interface class
- *
- * @return the connection interface class
- */
- public String getConnectionInterfaceClass()
- {
- return connectionInterfaceClass;
- }
-
- /**
- * Set the connection interface class
- *
- * @param connectionInterfaceClass the class name
- */
- @XmlElement(name="connection-interface")
- public void setConnectionInterfaceClass(String connectionInterfaceClass)
- {
- this.connectionInterfaceClass = connectionInterfaceClass;
- }
-
- /**
- * Get the connection implementation class
- *
- * @return the connection implementation class
- */
- public String getConnectionImplementationClass()
- {
- return connectionImplementationClass;
- }
-
- /**
- * Set the connection implementation class
- *
- * @param connectionImplementationClass the class name
- */
- @XmlElement(name="connection-impl-class")
- public void setConnectionImplementationClass(String connectionImplementationClass)
- {
- this.connectionImplementationClass = connectionImplementationClass;
- }
-
- public String toString()
- {
- StringBuffer buffer = new StringBuffer();
- buffer.append("ConnectionDefinitionMetaData").append('@');
- buffer.append(Integer.toHexString(System.identityHashCode(this)));
- buffer.append("[managedConnectionFactoryClass=").append(managedConnectionFactoryClass);
- buffer.append(" connectionFactoryInterfaceClass=").append(connectionFactoryInterfaceClass);
- buffer.append(" connectionFactoryImplementationClass=").append(connectionFactoryImplementationClass);
- buffer.append(" connectionInterfaceClass=").append(connectionInterfaceClass);
- buffer.append(" connectionImplementationClass=").append(connectionImplementationClass);
- //buffer.append(" properties=").append(getProperties());
- buffer.append(']');
- return buffer.toString();
- }
-}
Deleted: projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/ConnectorMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/ConnectorMetaData.java 2008-10-09 04:45:01 UTC (rev 79284)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/ConnectorMetaData.java 2008-10-09 05:15:53 UTC (rev 79285)
@@ -1,262 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.metadata.rar.jboss;
-
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlTransient;
-
-import org.jboss.metadata.javaee.support.IdMetaDataImplWithDescriptionGroup;
-
-
-/**
- * Connector meta data
- *
- * @author <a href="mailto:adrian at jboss.com">Adrian Brock</a>
- * @author Jeff Zhang
- * @version $Revision: 76091 $
- */
-public class ConnectorMetaData extends IdMetaDataImplWithDescriptionGroup
-{
- private static final long serialVersionUID = 7047130842894140222L;
-
- private String dtdPublicId;
- private String dtdSystemId;
- /** The version */
- private String version;
-
- /** The vendor name */
- private String vendorName;
-
- /** The eis type */
- private String eisType;
-
- /** The resource adapter version */
- private String raVersion;
-
- /** The resource adapter class */
- private String raClass;
-
- /** The license */
- private LicenseMetaData lmd;
-
- private ResourceAdapterMetaData ra;
-
- /**
- * Callback for the DTD information
- * @param root
- * @param publicId
- * @param systemId
- */
- @XmlTransient
- public void setDTD(String root, String publicId, String systemId)
- {
- this.dtdPublicId = publicId;
- this.dtdSystemId = systemId;
- }
- /**
- * Get the DTD public id if one was seen
- * @return the value of the web.xml dtd public id
- */
- @XmlTransient
- public String getDtdPublicId()
- {
- return dtdPublicId;
- }
- /**
- * Get the DTD system id if one was seen
- * @return the value of the web.xml dtd system id
- */
- @XmlTransient
- public String getDtdSystemId()
- {
- return dtdSystemId;
- }
- /**
- * Get the connector version
- *
- * @return the connector version
- */
- public String getVersion()
- {
- return version;
- }
- /**
- * Set the connector version
- *
- * @param version the connector version
- */
- @XmlAttribute
- public void setVersion(String version)
- {
- this.version = version;
- }
-
- /**
- * Is this a servlet 2.3 version application
- * @return true if this is a javaee 2.3 version application
- */
- @XmlTransient
- public boolean is10()
- {
- return dtdPublicId != null && dtdPublicId.equals("-//Sun Microsystems, Inc.//DTD Connector 1.0//EN");
- }
- @XmlTransient
- public boolean is15()
- {
- return version != null && version.equals("1.5");
- }
- @XmlTransient
- public boolean is16()
- {
- return version != null && version.equals("1.6");
- }
-
- /**
- * Get the vendor name
- *
- * @return the vendor name
- */
- public String getVendorName()
- {
- return vendorName;
- }
-
- /**
- * Set the vendor name
- *
- * @param vendorName the vendor name
- */
- @XmlElement(name="vendor-name")
- public void setVendorName(String vendorName)
- {
- this.vendorName = vendorName;
- }
-
- /**
- * Get the eis type
- *
- * @return the eis type
- */
- public String getEISType()
- {
- return eisType;
- }
-
- /**
- * Set the eis Type
- *
- * @param eisType the eis type
- */
- @XmlElement(name="eis-type")
- public void setEISType(String eisType)
- {
- this.eisType = eisType;
- }
-
- /**
- * Get the resource adapter version
- *
- * @return the resource adapter version
- */
- public String getRAVersion()
- {
- return raVersion;
- }
-
- /**
- * Set the resource adapter version
- *
- * @param version the resource adapter version
- */
- @XmlElement(name="resourceadapter-version")
- public void setRAVersion(String version)
- {
- this.raVersion = version;
- }
-
- /**
- * Get the resource adapter class
- *
- * @return the resource adapter class
- */
- public String getRAClass()
- {
- return raClass;
- }
-
- /**
- * Set the resource adapter class
- *
- * @param raClass the resource adapter class
- */
- public void setRAClass(String raClass)
- {
- this.raClass = raClass;
- }
-
- /**
- * Get the license
- *
- * @return the license
- */
- public LicenseMetaData getLicense()
- {
- return lmd;
- }
- /**
- * Get the license
- *
- * @return the license
- */
- @XmlElement(name="license")
- public void setLicense(LicenseMetaData lmd)
- {
- this.lmd = lmd;
- }
-
- @XmlElement(name="resourceadapter")
- public void setRa(ResourceAdapterMetaData ra) {
- this.ra = ra;
- }
- public ResourceAdapterMetaData getRa() {
- return ra;
- }
-
- public String toString()
- {
- StringBuffer buffer = new StringBuffer();
- buffer.append("ConnectorMetaData").append('@');
- buffer.append(Integer.toHexString(System.identityHashCode(this)));
- buffer.append("[version=").append(version);
- buffer.append(" vendorName=").append(vendorName);
- buffer.append(" eisType=").append(eisType);
- buffer.append(" resourceAdapterVersion=").append(raVersion);
- buffer.append(" resourceAdapterClass=").append(raClass);
- buffer.append(" license=").append(lmd);
- //buffer.append(" properties=").append(getProperties());
- //buffer.append(" descriptions=").append(descriptions.values());
- buffer.append(']');
- return buffer.toString();
- }
-
-}
Added: projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/DependsMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/DependsMetaData.java (rev 0)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/DependsMetaData.java 2008-10-09 05:15:53 UTC (rev 79285)
@@ -0,0 +1,66 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.metadata.rar.jboss;
+
+import java.io.Serializable;
+
+/**
+ * Depends meta data
+ *
+ * @author <a href="mailto:vicky.kak at jboss.com">Vicky Kak</a>
+ */
+public class DependsMetaData implements Serializable
+{
+ private static final long serialVersionUID = -4864068414581654366L;
+
+ /** The dependsName */
+ private String dependsName;
+
+ /**
+ * Get the dependsName
+ *
+ * @return the dependsName
+ */
+ public String getDependsName()
+ {
+ return dependsName;
+ }
+
+ /**
+ * Set the dependsName
+ *
+ * @param dependsName the dependsName
+ */
+ public void setDependsName(String dependsName)
+ {
+ this.dependsName = dependsName;
+ }
+
+ public String toString()
+ {
+ StringBuffer buffer = new StringBuffer();
+ buffer.append("DependsMetaData").append('@');
+ buffer.append(Integer.toHexString(System.identityHashCode(this)));
+ buffer.append("[dependsName=").append(dependsName).append(']');
+ return buffer.toString();
+ }
+}
Deleted: projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/DescriptionGroupMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/DescriptionGroupMetaData.java 2008-10-09 04:45:01 UTC (rev 79284)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/DescriptionGroupMetaData.java 2008-10-09 05:15:53 UTC (rev 79285)
@@ -1,180 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.metadata.rar.jboss;
-
-import java.io.Serializable;
-import java.util.Locale;
-
-/**
- * Description group meta data
- *
- * @author <a href="mailto:adrian at jboss.com">Adrian Brock</a>
- * @version $Revision: 71554 $
- */
-public class DescriptionGroupMetaData implements Serializable
-{
- static final long serialVersionUID = 1324619949051028127L;
-
- /** The language */
- private String lang;
-
- /** The description */
- private String description;
-
- /** The display name */
- private String displayName;
-
- /** The small icon */
- private String smallIcon;
-
- /** The large icon */
- private String largeIcon;
-
- /**
- * Create a new description group meta data using the default langugage
- */
- public DescriptionGroupMetaData()
- {
- this(null);
- }
-
- /**
- * Create a new description group meta data
- *
- * @param lang the language
- */
- public DescriptionGroupMetaData(String lang)
- {
- if (lang == null)
- this.lang = Locale.getDefault().getLanguage();
- else
- this.lang = lang;
- }
-
- /**
- * Get the language
- *
- * @return the language
- */
- public String getLanguage()
- {
- return lang;
- }
-
- /**
- * Get the description
- *
- * @return the description
- */
- public String getDescription()
- {
- return description;
- }
-
- /**
- * Set the description
- *
- * @param description the description
- */
- public void setDescription(String description)
- {
- this.description = description;
- }
-
- /**
- * Get the display name
- *
- * @return the display name
- */
- public String getDisplayName()
- {
- return displayName;
- }
-
- /**
- * Set the display name
- *
- * @param displayName the display name
- */
- public void setDisplayName(String displayName)
- {
- this.displayName = displayName;
- }
-
- /**
- * Get the small icon
- *
- * @return the small icon
- */
- public String getSmallIcon()
- {
- return smallIcon;
- }
-
- /**
- * Set the small icon
- *
- * @param icon the icon
- */
- public void setSmallIcon(String icon)
- {
- this.smallIcon = icon;
- }
-
- /**
- * Get the large icon
- *
- * @return the large icon
- */
- public String getLargeIcon()
- {
- return largeIcon;
- }
-
- /**
- * Set the large icon
- *
- * @param icon the icon
- */
- public void setLargeIcon(String icon)
- {
- this.largeIcon = icon;
- }
-
- public String toString()
- {
- StringBuffer buffer = new StringBuffer();
- buffer.append("DescriptionGroupMetaData").append('@');
- buffer.append(Integer.toHexString(System.identityHashCode(this)));
- buffer.append("[language=").append(lang);
- if (description != null)
- buffer.append(" description=").append(description);
- if (displayName != null)
- buffer.append(" displayName=").append(displayName);
- if (smallIcon != null)
- buffer.append(" smallIcon=").append(smallIcon);
- if (largeIcon != null)
- buffer.append(" largeIcon=").append(largeIcon);
- buffer.append(']');
- return buffer.toString();
- }
-}
Deleted: projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/DescriptionMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/DescriptionMetaData.java 2008-10-09 04:45:01 UTC (rev 79284)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/DescriptionMetaData.java 2008-10-09 05:15:53 UTC (rev 79285)
@@ -1,105 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.metadata.rar.jboss;
-
-import java.io.Serializable;
-import java.util.Locale;
-
-/**
- * Description meta data
- *
- * @author <a href="mailto:adrian at jboss.com">Adrian Brock</a>
- * @version $Revision: 71554 $
- */
-public class DescriptionMetaData implements Serializable
-{
- static final long serialVersionUID = -3100028904830435509L;
-
- /** The language */
- private String lang;
-
- /** The description */
- private String description;
-
- /**
- * Create a new description meta data using the default langugage
- */
- public DescriptionMetaData()
- {
- this(null);
- }
-
- /**
- * Create a new description meta data
- *
- * @param lang the language
- */
- public DescriptionMetaData(String lang)
- {
- if (lang == null)
- this.lang = Locale.getDefault().getLanguage();
- else
- this.lang = lang;
- }
-
- /**
- * Get the language
- *
- * @return the language
- */
- public String getLanguage()
- {
- return lang;
- }
-
- /**
- * Get the description
- *
- * @return the description
- */
- public String getDescription()
- {
- return description;
- }
-
- /**
- * Set the description
- *
- * @param description the description
- */
- public void setDescription(String description)
- {
- this.description = description;
- }
-
- public String toString()
- {
- StringBuffer buffer = new StringBuffer();
- buffer.append("DescriptionMetaData").append('@');
- buffer.append(Integer.toHexString(System.identityHashCode(this)));
- buffer.append("[language=").append(lang);
- if (description != null)
- buffer.append(" description=").append(description);
- buffer.append(']');
- return buffer.toString();
- }
-}
Deleted: projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/DescriptionMetaDataContainer.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/DescriptionMetaDataContainer.java 2008-10-09 04:45:01 UTC (rev 79284)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/DescriptionMetaDataContainer.java 2008-10-09 05:15:53 UTC (rev 79285)
@@ -1,111 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.metadata.rar.jboss;
-
-import java.io.Serializable;
-import java.util.Collection;
-import java.util.Iterator;
-import java.util.Locale;
-import java.util.concurrent.ConcurrentHashMap;
-
-/**
- * An abstract class for meta data that has descriptions
- *
- * @author <a href="mailto:adrian at jboss.org">Adrian Brock</a>
- * @version $Revision: 76091 $
- */
-public class DescriptionMetaDataContainer implements Serializable
-{
- private static final long serialVersionUID = -8988666040600469357L;
-
- /** The descriptions */
- private ConcurrentHashMap<String, DescriptionMetaData> descriptions = new ConcurrentHashMap<String, DescriptionMetaData>();
-
- public DescriptionMetaDataContainer()
- {
- DescriptionMetaData dmd = new DescriptionMetaData();
- descriptions.put(dmd.getLanguage(), dmd);
- }
-
- /**
- * Get the desription for the default language
- * or the first description if there is no default
- *
- * @return the description for the default language
- */
- public DescriptionMetaData getDescription()
- {
- // Try the default locale
- DescriptionMetaData dmd = descriptions.get(Locale.getDefault().getLanguage());
- // No description using the default locale, just use the first
- if (dmd == null)
- {
- for (Iterator<DescriptionMetaData> i = descriptions.values().iterator(); i.hasNext();)
- {
- dmd = i.next();
- break;
- }
- }
- return dmd;
- }
-
- /**
- * Get the description for the give language
- *
- * @param lang the language
- * @return the description
- */
- public DescriptionMetaData getDescription(String lang)
- {
- return descriptions.get(lang);
- }
-
- /**
- * Add a description
- *
- * @param dmd the description
- */
- public void addDescription(DescriptionMetaData dmd)
- {
- descriptions.put(dmd.getLanguage(), dmd);
- }
-
- /**
- * Get the descriptions
- *
- * @return the descriptions
- */
- public Collection<DescriptionMetaData> getDescriptions()
- {
- return descriptions.values();
- }
-
- public String toString()
- {
- StringBuffer buffer = new StringBuffer();
- buffer.append("DescriptionMetaDataContainer").append('@');
- buffer.append(Integer.toHexString(System.identityHashCode(this)));
- buffer.append("[descriptions=").append(descriptions.values());
- buffer.append(']');
- return buffer.toString();
- }
-}
Deleted: projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/InboundRaMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/InboundRaMetaData.java 2008-10-09 04:45:01 UTC (rev 79284)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/InboundRaMetaData.java 2008-10-09 05:15:53 UTC (rev 79285)
@@ -1,49 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.metadata.rar.jboss;
-
-
-import javax.xml.bind.annotation.XmlElement;
-import org.jboss.metadata.javaee.support.IdMetaDataImpl;
-
-/**
- * inbound ResourceAdapter meta data
- *
- * @author Jeff Zhang
- * @version $Revision: $
- */
-public class InboundRaMetaData extends IdMetaDataImpl
-{
- private static final long serialVersionUID = -1583292998359497984L;
-
- private MessageAdapterMetaData messageAdapter;
-
- @XmlElement(name="messageadapter")
- public void setMessageAdapter(MessageAdapterMetaData messageAdapter) {
- this.messageAdapter = messageAdapter;
- }
-
- public MessageAdapterMetaData getMessageAdapter() {
- return messageAdapter;
- }
-
-}
Added: projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/JBossRAMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/JBossRAMetaData.java (rev 0)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/JBossRAMetaData.java 2008-10-09 05:15:53 UTC (rev 79285)
@@ -0,0 +1,52 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.metadata.rar.jboss;
+
+import java.util.List;
+
+import org.jboss.metadata.rar.spec.ConfigPropertyMetaDataContainer;
+import org.jboss.util.collection.CollectionsFactory;
+
+/**
+ * A JBossRAMetaData.
+ *
+ * @author <a href="weston.price at jboss.com">Weston Price</a>
+ * @author <a href="vicky.kak at jboss.com">Vicky Kak</a>
+ * @version $Revision: 75672 $
+ */
+public class JBossRAMetaData extends ConfigPropertyMetaDataContainer
+{
+ /** The serialVersionUID */
+ private static final long serialVersionUID = -8041048198795930659L;
+
+ private List<DependsMetaData> dependsNameList = CollectionsFactory.createLazyList();
+
+ public void addDependsMetaData(DependsMetaData dmd)
+ {
+ dependsNameList.add(dmd);
+ }
+
+ public List<DependsMetaData> getDependsMetaData()
+ {
+ return dependsNameList;
+ }
+}
Deleted: projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/LicenseMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/LicenseMetaData.java 2008-10-09 04:45:01 UTC (rev 79284)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/LicenseMetaData.java 2008-10-09 05:15:53 UTC (rev 79285)
@@ -1,72 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.metadata.rar.jboss;
-
-import javax.xml.bind.annotation.XmlElement;
-import org.jboss.metadata.javaee.support.IdMetaDataImplWithDescriptions;
-
-/**
- * License meta data
- *
- * @author <a href="mailto:adrian at jboss.com">Adrian Brock</a>
- * @author Jeff Zhang
- * @version $Revision: 71554 $
- */
-public class LicenseMetaData extends IdMetaDataImplWithDescriptions
-{
- private static final long serialVersionUID = -1583292998139497934L;
-
- /** license required */
- private boolean required = false;
-
- /**
- * Get the license required flag
- *
- * @return the license required flag
- */
- public boolean getRequired()
- {
- return required;
- }
-
- /**
- * Set the license required flag
- *
- * @param required the required flag
- */
- @XmlElement(name="license-required")
- public void setRequired(boolean required)
- {
- this.required = required;
- }
-
- public String toString()
- {
- StringBuffer buffer = new StringBuffer();
- buffer.append("LicenseMetaData").append('@');
- buffer.append(Integer.toHexString(System.identityHashCode(this)));
- buffer.append("[required=").append(required);
- buffer.append(" descriptions=").append(getDescriptions());
- buffer.append(']');
- return buffer.toString();
- }
-}
Deleted: projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/MessageAdapterMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/MessageAdapterMetaData.java 2008-10-09 04:45:01 UTC (rev 79284)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/MessageAdapterMetaData.java 2008-10-09 05:15:53 UTC (rev 79285)
@@ -1,50 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.metadata.rar.jboss;
-
-
-import java.util.List;
-
-import javax.xml.bind.annotation.XmlElement;
-import org.jboss.metadata.javaee.support.IdMetaDataImpl;
-
-/**
- * Message Adapter meta data
- *
- * @author Jeff Zhang
- * @version $Revision: $
- */
-public class MessageAdapterMetaData extends IdMetaDataImpl
-{
- private static final long serialVersionUID = -1583492998359497984L;
-
- private List<MessageListenerMetaData> messageListeners;
-
- @XmlElement(name="messagelistener")
- public void setMessageListeners(List<MessageListenerMetaData> messageListeners) {
- this.messageListeners = messageListeners;
- }
-
- public List<MessageListenerMetaData> getMessageListeners() {
- return messageListeners;
- }
-}
Deleted: projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/MessageListenerMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/MessageListenerMetaData.java 2008-10-09 04:45:01 UTC (rev 79284)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/MessageListenerMetaData.java 2008-10-09 05:15:53 UTC (rev 79285)
@@ -1,99 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.metadata.rar.jboss;
-
-import javax.xml.bind.annotation.XmlElement;
-
-import org.jboss.metadata.javaee.support.IdMetaDataImpl;
-
-/**
- * Message listener meta data
- *
- * @author <a href="mailto:adrian at jboss.com">Adrian Brock</a>
- * @author Jeff Zhang
- * @version $Revision: 75672 $
- */
-public class MessageListenerMetaData extends IdMetaDataImpl
-{
- private static final long serialVersionUID = -3196418073906964586L;
-
- /** The message listener type */
- private String type;
-
- /** The activation spec type */
- private ActivationspecMetaData asType;
-
- /**
- * Get the message listener type
- *
- * @return the message listener type
- */
- public String getType()
- {
- return type;
- }
-
- /**
- * Set the message listener type
- *
- * @param type the message listener type
- */
- @XmlElement(name="messagelistener-type")
- public void setType(String type)
- {
- this.type = type;
- }
-
- /**
- * Get the activation spec type
- *
- * @return the activation spec type
- */
- public ActivationspecMetaData getActivationSpecType()
- {
- return asType;
- }
-
- /**
- * Set the activation spec type
- *
- * @param type the activation spec type
- */
- @XmlElement(name="activationspec")
- public void setActivationSpecType(ActivationspecMetaData type)
- {
- this.asType = type;
- }
-
-
- public String toString()
- {
- StringBuffer buffer = new StringBuffer();
- buffer.append("MessageListenerMetaData").append('@');
- buffer.append(Integer.toHexString(System.identityHashCode(this)));
- buffer.append("[type=").append(type);
- buffer.append(" activationSpecType=").append(asType);
- //buffer.append(" requiredProperties=").append(requiredProperties);
- buffer.append(']');
- return buffer.toString();
- }
-}
Deleted: projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/OutboundRaMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/OutboundRaMetaData.java 2008-10-09 04:45:01 UTC (rev 79284)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/OutboundRaMetaData.java 2008-10-09 05:15:53 UTC (rev 79285)
@@ -1,78 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.metadata.rar.jboss;
-
-import java.util.List;
-import javax.xml.bind.annotation.XmlElement;
-import org.jboss.metadata.javaee.support.IdMetaDataImpl;
-
-/**
- * outbound ResourceAdapter meta data
- *
- * @author Jeff Zhang
- * @version $Revision: $
- */
-public class OutboundRaMetaData extends IdMetaDataImpl
-{
- private static final long serialVersionUID = -1583292998339497984L;
-
- private List<ConnectionDefinitionMetaData> conDefs;
- private TransactionSupportMetaData transSupport;
- private List<AuthenticationMechanismMetaData> authMechanisms;
- private boolean reAuthSupport;
-
- @XmlElement(name="connection-definition")
- public void setConDefs(List<ConnectionDefinitionMetaData> conDefs) {
- this.conDefs = conDefs;
- }
-
- public List<ConnectionDefinitionMetaData> getConDefs() {
- return conDefs;
- }
-
- @XmlElement(name="transaction-support")
- public void setTransSupport(TransactionSupportMetaData transSupport) {
- this.transSupport = transSupport;
- }
-
- public TransactionSupportMetaData getTransSupport() {
- return transSupport;
- }
-
- @XmlElement(name="authentication-mechanism")
- public void setAuthMechanisms(List<AuthenticationMechanismMetaData> authMechanisms) {
- this.authMechanisms = authMechanisms;
- }
-
- public List<AuthenticationMechanismMetaData> getAuthMechanisms() {
- return authMechanisms;
- }
-
- @XmlElement(name="reauthentication-support")
- public void setReAuthSupport(boolean reAuthSupport) {
- this.reAuthSupport = reAuthSupport;
- }
-
- public boolean isReAuthSupport() {
- return reAuthSupport;
- }
-}
Added: projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/RARDeploymentMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/RARDeploymentMetaData.java (rev 0)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/RARDeploymentMetaData.java 2008-10-09 05:15:53 UTC (rev 79285)
@@ -0,0 +1,60 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.metadata.rar.jboss;
+
+import java.io.Serializable;
+
+import org.jboss.metadata.rar.spec.ConnectorMetaData;
+
+/**
+ * A RARDeploymentMetaData.
+ *
+ * @author <a href="weston.price at jboss.com">Weston Price</a>
+ * @version $Revision: 75672 $
+ */
+public class RARDeploymentMetaData implements Serializable
+{
+ private static final long serialVersionUID = 5812689890896027289L;
+
+ private ConnectorMetaData connectorMetaData = new ConnectorMetaData();
+ private JBossRAMetaData raXmlMetaData = new JBossRAMetaData();
+
+ public ConnectorMetaData getConnectorMetaData()
+ {
+ return connectorMetaData;
+ }
+
+ public void setConnectorMetaData(ConnectorMetaData connectorMetaData)
+ {
+ this.connectorMetaData = connectorMetaData;
+ }
+
+ public JBossRAMetaData getRaXmlMetaData()
+ {
+ return raXmlMetaData;
+ }
+
+ public void setRaXmlMetaData(JBossRAMetaData raXmlMetaData)
+ {
+ this.raXmlMetaData = raXmlMetaData;
+ }
+}
Deleted: projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/RequiredConfigPropertyMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/RequiredConfigPropertyMetaData.java 2008-10-09 04:45:01 UTC (rev 79284)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/RequiredConfigPropertyMetaData.java 2008-10-09 05:15:53 UTC (rev 79285)
@@ -1,73 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.metadata.rar.jboss;
-
-import javax.xml.bind.annotation.XmlElement;
-
-import org.jboss.metadata.javaee.support.IdMetaDataImplWithDescriptionGroup;
-
-/**
- * Required Config property meta data
- *
- * @author <a href="mailto:adrian at jboss.com">Adrian Brock</a>
- * @author Jeff Zhang
- * @version $Revision: 71554 $
- */
-public class RequiredConfigPropertyMetaData extends IdMetaDataImplWithDescriptionGroup
-{
- static final long serialVersionUID = 7276282462933038174L;
-
- /** The name */
- private String name;
-
- /**
- * Get the name
- *
- * @return the name
- */
- public String getName()
- {
- return name;
- }
-
- /**
- * Set the name
- *
- * @param name the name
- */
- @XmlElement(name="config-property-name")
- public void setName(String name)
- {
- this.name = name;
- }
-
- public String toString()
- {
- StringBuffer buffer = new StringBuffer();
- buffer.append("RequiredConfigPropertyMetaData").append('@');
- buffer.append(Integer.toHexString(System.identityHashCode(this)));
- buffer.append("[name=").append(name);
- //buffer.append(" descriptions=").append(getDescriptions());
- buffer.append(']');
- return buffer.toString();
- }
-}
Deleted: projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/ResourceAdapterMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/ResourceAdapterMetaData.java 2008-10-09 04:45:01 UTC (rev 79284)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/ResourceAdapterMetaData.java 2008-10-09 05:15:53 UTC (rev 79285)
@@ -1,98 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.metadata.rar.jboss;
-
-import java.util.List;
-import javax.xml.bind.annotation.XmlElement;
-import org.jboss.metadata.javaee.support.IdMetaDataImplWithDescriptions;
-
-/**
- * ResourceAdapter meta data
- *
- * @author Jeff Zhang
- * @version $Revision: $
- */
-public class ResourceAdapterMetaData extends IdMetaDataImplWithDescriptions
-{
- private static final long serialVersionUID = -1583292998139497984L;
-
- private String raClass;
- private List<ConfigPropertyMetaData> configProperty;
- private OutboundRaMetaData outboundRa;
- private InboundRaMetaData inboundRa;
- private List<AdminObjectMetaData> adminObjects;
- private List<SecurityPermissionMetaData> securityPermissions;
-
- @XmlElement(name="resourceadapter-class")
- public void setRaClass(String raClass) {
- this.raClass = raClass;
- }
-
- public String getRaClass() {
- return raClass;
- }
-
- @XmlElement(name="config-property")
- public void setConfigProperty(List<ConfigPropertyMetaData> configProperty) {
- this.configProperty = configProperty;
- }
-
- public List<ConfigPropertyMetaData> getConfigProperty() {
- return configProperty;
- }
-
- @XmlElement(name="outbound-resourceadapter")
- public void setOutboundRa(OutboundRaMetaData outboundRa) {
- this.outboundRa = outboundRa;
- }
-
- public OutboundRaMetaData getOutboundRa() {
- return outboundRa;
- }
-
- @XmlElement(name="inbound-resourceadapter")
- public void setInboundRa(InboundRaMetaData inboundRa) {
- this.inboundRa = inboundRa;
- }
-
- public InboundRaMetaData getInboundRa() {
- return inboundRa;
- }
-
- @XmlElement(name="adminobject")
- public void setAdminObjects(List<AdminObjectMetaData> adminObjects) {
- this.adminObjects = adminObjects;
- }
-
- public List<AdminObjectMetaData> getAdminObjects() {
- return adminObjects;
- }
-
- @XmlElement(name="security-permission")
- public void setSecurityPermissions(List<SecurityPermissionMetaData> securityPermissions) {
- this.securityPermissions = securityPermissions;
- }
-
- public List<SecurityPermissionMetaData> getSecurityPermissions() {
- return securityPermissions;
- }
-}
Deleted: projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/SecurityPermissionMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/SecurityPermissionMetaData.java 2008-10-09 04:45:01 UTC (rev 79284)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/SecurityPermissionMetaData.java 2008-10-09 05:15:53 UTC (rev 79285)
@@ -1,73 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.metadata.rar.jboss;
-
-import javax.xml.bind.annotation.XmlElement;
-
-import org.jboss.metadata.javaee.support.IdMetaDataImplWithDescriptionGroup;
-
-/**
- * Security Permission meta data
- *
- * @author <a href="mailto:adrian at jboss.com">Adrian Brock</a>
- * @author Jeff Zhang
- * @version $Revision: 71554 $
- */
-public class SecurityPermissionMetaData extends IdMetaDataImplWithDescriptionGroup
-{
- private static final long serialVersionUID = -2819460637074430187L;
-
- /** The security permission spec */
- private String securityPermissionSpec;
-
- /**
- * Get the security permission spec
- *
- * @return the security permission spec
- */
- public String getSecurityPermissionSpec()
- {
- return securityPermissionSpec;
- }
-
- /**
- * Set the security permission spec
- *
- * @param securityPermissionSpec the spec
- */
- @XmlElement(name="security-permission-spec")
- public void setSecurityPermissionSpec(String securityPermissionSpec)
- {
- this.securityPermissionSpec = securityPermissionSpec;
- }
-
- public String toString()
- {
- StringBuffer buffer = new StringBuffer();
- buffer.append("SecurityPermissionMetaData").append('@');
- buffer.append(Integer.toHexString(System.identityHashCode(this)));
- buffer.append("[spec=").append(securityPermissionSpec);
- //buffer.append(" descriptions=").append(getDescriptions());
- buffer.append(']');
- return buffer.toString();
- }
-}
Deleted: projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/TransactionSupportMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/TransactionSupportMetaData.java 2008-10-09 04:45:01 UTC (rev 79284)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/jboss/TransactionSupportMetaData.java 2008-10-09 05:15:53 UTC (rev 79285)
@@ -1,41 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.metadata.rar.jboss;
-
-import javax.xml.bind.annotation.XmlEnum;
-import javax.xml.bind.annotation.XmlType;
-
-/**
- * Transaction Support meta data
- *
- * @author <a href="mailto:adrian at jboss.com">Adrian Brock</a>
- * @author Jeff Zhang
- * @version $Revision: 71554 $
- */
- at XmlType(name="TransactionSupportMetaData")
- at XmlEnum(String.class)
-public enum TransactionSupportMetaData
-{
- NoTransaction, LocalTransaction, XATransaction
-
-}
-
Added: projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/ActivationspecMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/ActivationspecMetaData.java (rev 0)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/ActivationspecMetaData.java 2008-10-09 05:15:53 UTC (rev 79285)
@@ -0,0 +1,61 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.metadata.rar.spec;
+
+
+import java.util.List;
+
+import javax.xml.bind.annotation.XmlElement;
+import org.jboss.metadata.javaee.support.IdMetaDataImpl;
+
+/**
+ * Activationspec meta data
+ *
+ * @author Jeff Zhang
+ * @version $Revision: $
+ */
+public class ActivationspecMetaData extends IdMetaDataImpl
+{
+ private static final long serialVersionUID = -1583292998359427984L;
+
+ private String asClass;
+ private List<RequiredConfigPropertyMetaData> requiredConfigProps;
+
+ @XmlElement(name="activationspec-class")
+ public void setAsClass(String asClass) {
+ this.asClass = asClass;
+ }
+
+ public String getAsClass() {
+ return asClass;
+ }
+
+ @XmlElement(name="required-config-property")
+ public void setRequiredConfigProps(List<RequiredConfigPropertyMetaData> requiredConfigProps) {
+ this.requiredConfigProps = requiredConfigProps;
+ }
+
+ public List<RequiredConfigPropertyMetaData> getRequiredConfigProps() {
+ return requiredConfigProps;
+ }
+
+}
Added: projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/AdminObjectMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/AdminObjectMetaData.java (rev 0)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/AdminObjectMetaData.java 2008-10-09 05:15:53 UTC (rev 79285)
@@ -0,0 +1,111 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.metadata.rar.spec;
+
+import java.util.List;
+
+import javax.xml.bind.annotation.XmlElement;
+
+import org.jboss.metadata.javaee.support.IdMetaDataImpl;
+
+/**
+ * Admin object meta data
+ *
+ * @author <a href="mailto:adrian at jboss.com">Adrian Brock</a>
+ * @author Jeff Zhang
+ * @version $Revision: 71554 $
+ */
+public class AdminObjectMetaData extends IdMetaDataImpl
+{
+ private static final long serialVersionUID = 5647786972921112792L;
+
+ /** The admin object interface class */
+ private String adminObjectInterfaceClass;
+
+ /** The admin object implementation class */
+ private String adminObjectImplementationClass;
+
+ private List<ConfigPropertyMetaData> configProps;
+ /**
+ * Get the admin object interface class
+ *
+ * @return the admin object interface class
+ */
+ public String getAdminObjectInterfaceClass()
+ {
+ return adminObjectInterfaceClass;
+ }
+
+ /**
+ * Set the admin object interface class
+ *
+ * @param adminObjectInterfaceClass the class name
+ */
+ @XmlElement(name="adminobject-interface")
+ public void setAdminObjectInterfaceClass(String adminObjectInterfaceClass)
+ {
+ this.adminObjectInterfaceClass = adminObjectInterfaceClass;
+ }
+
+ /**
+ * Get the admin object implementation class
+ *
+ * @return the admin object implementation class
+ */
+ public String getAdminObjectImplementationClass()
+ {
+ return adminObjectImplementationClass;
+ }
+
+ /**
+ * Set the admin object implementation class
+ *
+ * @param adminObjectImplementationClass the class name
+ */
+ @XmlElement(name="adminobject-class")
+ public void setAdminObjectImplementationClass(String adminObjectImplementationClass)
+ {
+ this.adminObjectImplementationClass = adminObjectImplementationClass;
+ }
+
+ @XmlElement(name="config-property")
+ public void setConfigProps(List<ConfigPropertyMetaData> configProps) {
+ this.configProps = configProps;
+ }
+
+ public List<ConfigPropertyMetaData> getConfigProps() {
+ return configProps;
+ }
+
+ public String toString()
+ {
+ StringBuffer buffer = new StringBuffer();
+ buffer.append("AdminObjectMetaData").append('@');
+ buffer.append(Integer.toHexString(System.identityHashCode(this)));
+ buffer.append("[adminObjectInterfaceClass=").append(adminObjectInterfaceClass);
+ buffer.append(" adminObjectImplementationClass=").append(adminObjectImplementationClass);
+ //buffer.append(" properties=").append(getProperties());
+ buffer.append(']');
+ return buffer.toString();
+ }
+
+}
Added: projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/AuthenticationMechanismMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/AuthenticationMechanismMetaData.java (rev 0)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/AuthenticationMechanismMetaData.java 2008-10-09 05:15:53 UTC (rev 79285)
@@ -0,0 +1,98 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.metadata.rar.spec;
+
+import javax.xml.bind.annotation.XmlElement;
+
+import org.jboss.metadata.javaee.support.IdMetaDataImplWithDescriptionGroup;
+
+/**
+ * Authentication mechanism meta data
+ *
+ * @author <a href="mailto:adrian at jboss.com">Adrian Brock</a>
+ * @author Jeff Zhang
+ * @version $Revision: 71554 $
+ */
+public class AuthenticationMechanismMetaData extends IdMetaDataImplWithDescriptionGroup
+{
+ static final long serialVersionUID = 1562443409483033688L;
+
+ /** The authentication mechanism type */
+ private String authenticationMechanismType;
+
+ /** The credential interface class */
+ private String credentialInterfaceClass;
+
+ /**
+ * Get the authentication mechanism type
+ *
+ * @return the authentication mechanism type
+ */
+ public String getAuthenticationMechansimType()
+ {
+ return authenticationMechanismType;
+ }
+
+ /**
+ * Set the authentication mechanism type
+ *
+ * @param authenticationMechanismType the type
+ */
+ @XmlElement(name="authentication-mechanism-type")
+ public void setAuthenticationMechansimType(String authenticationMechanismType)
+ {
+ this.authenticationMechanismType = authenticationMechanismType;
+ }
+
+ /**
+ * Get the credential interface class
+ *
+ * @return the credential interface class
+ */
+ public String getCredentialInterfaceClass()
+ {
+ return credentialInterfaceClass;
+ }
+
+ /**
+ * Set the credential interface class
+ *
+ * @param credentialInterfaceClass the class
+ */
+ @XmlElement(name="credential-interface")
+ public void setCredentialInterfaceClass(String credentialInterfaceClass)
+ {
+ this.credentialInterfaceClass = credentialInterfaceClass;
+ }
+
+ public String toString()
+ {
+ StringBuffer buffer = new StringBuffer();
+ buffer.append("AuthenticationMechanismMetaData").append('@');
+ buffer.append(Integer.toHexString(System.identityHashCode(this)));
+ buffer.append("[authenticationMechanismType=").append(authenticationMechanismType);
+ buffer.append(" credentialInterfaceClass=").append(credentialInterfaceClass);
+ //buffer.append(" descriptions=").append(getDescriptions());
+ buffer.append(']');
+ return buffer.toString();
+ }
+}
Added: projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/ConfigPropertyMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/ConfigPropertyMetaData.java (rev 0)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/ConfigPropertyMetaData.java 2008-10-09 05:15:53 UTC (rev 79285)
@@ -0,0 +1,125 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.metadata.rar.spec;
+
+import javax.xml.bind.annotation.XmlElement;
+
+import org.jboss.metadata.javaee.support.IdMetaDataImplWithDescriptionGroup;
+
+/**
+ * Config property meta data
+ *
+ * @author <a href="mailto:adrian at jboss.com">Adrian Brock</a>
+ * @author Jeff Zhang
+ * @version $Revision: 71554 $
+ */
+public class ConfigPropertyMetaData extends IdMetaDataImplWithDescriptionGroup
+{
+ private static final long serialVersionUID = -3247621229521854849L;
+
+ /** The name */
+ private String name;
+
+ /** The type */
+ private String type = "java.lang.String";
+
+ /** The value */
+ private String value = "";
+
+ /**
+ * Get the name
+ *
+ * @return the name
+ */
+ public String getName()
+ {
+ return name;
+ }
+
+ /**
+ * Set the name
+ *
+ * @param name the name
+ */
+ @XmlElement(name="config-property-name")
+ public void setName(String name)
+ {
+ this.name = name;
+ }
+
+ /**
+ * Get the type
+ *
+ * @return the type
+ */
+ public String getType()
+ {
+ return type;
+ }
+
+ /**
+ * Set the type
+ *
+ * @param type the type
+ */
+ @XmlElement(name="config-property-type")
+ public void setType(String type)
+ {
+ this.type = type;
+ }
+
+ /**
+ * Get the value
+ *
+ * @return the value
+ */
+ public String getValue()
+ {
+ return value;
+ }
+
+ /**
+ * Set the value
+ *
+ * @param value the value
+ */
+ @XmlElement(name="config-property-value")
+ public void setValue(String value)
+ {
+ this.value = value;
+ }
+
+ public String toString()
+ {
+ StringBuffer buffer = new StringBuffer();
+ buffer.append("ConfigPropertyMetaData").append('@');
+ buffer.append(Integer.toHexString(System.identityHashCode(this)));
+ buffer.append("[name=").append(name);
+ if (type != null)
+ buffer.append(" type=").append(type);
+ if (value != null)
+ buffer.append(" value=").append(value);
+ //buffer.append(" descriptions=").append(getDescriptions());
+ buffer.append(']');
+ return buffer.toString();
+ }
+}
Added: projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/ConfigPropertyMetaDataContainer.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/ConfigPropertyMetaDataContainer.java (rev 0)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/ConfigPropertyMetaDataContainer.java 2008-10-09 05:15:53 UTC (rev 79285)
@@ -0,0 +1,77 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.metadata.rar.spec;
+
+import java.io.Serializable;
+import java.util.Collection;
+import java.util.HashSet;
+import java.util.Set;
+
+/**
+ * An abstract class for meta data that have config properties
+ *
+ * @author <a href="mailto:adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 75675 $
+ */
+public class ConfigPropertyMetaDataContainer implements Serializable
+{
+ static final long serialVersionUID = 2891949219806920844L;
+
+ /** The properties by name */
+ private Set<ConfigPropertyMetaData> properties = new HashSet<ConfigPropertyMetaData>();
+
+ /**
+ * Add a property
+ *
+ * @param cpmd the property
+ */
+ public void addProperty(ConfigPropertyMetaData cpmd)
+ {
+ properties.add(cpmd);
+ }
+
+ /**
+ * Get the properties
+ *
+ * @return the properties
+ */
+ public Collection<ConfigPropertyMetaData> getProperties()
+ {
+ return properties;
+ }
+
+ /**
+ * Get the property for a name
+ *
+ * @param name the name
+ * @return the property or null if there is no property with that name
+ */
+ public ConfigPropertyMetaData getProperty(String name)
+ {
+ for (ConfigPropertyMetaData cpmd : properties)
+ {
+ if (cpmd.getName().equals(name))
+ return cpmd;
+ }
+ return null;
+ }
+}
Added: projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/ConnectionDefinitionMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/ConnectionDefinitionMetaData.java (rev 0)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/ConnectionDefinitionMetaData.java 2008-10-09 05:15:53 UTC (rev 79285)
@@ -0,0 +1,185 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.metadata.rar.spec;
+
+import java.util.List;
+import javax.xml.bind.annotation.XmlElement;
+import org.jboss.metadata.javaee.support.IdMetaDataImpl;
+
+/**
+ * Connection Definition meta data
+ *
+ * @author <a href="mailto:adrian at jboss.com">Adrian Brock</a>
+ * @author Jeff Zhang
+ * @version $Revision: 71554 $
+ */
+public class ConnectionDefinitionMetaData extends IdMetaDataImpl
+{
+ private static final long serialVersionUID = -138227135002730221L;
+
+ /** The managed connection factory class */
+ private String managedConnectionFactoryClass;
+
+ /** The connector metadata */
+ private List<ConfigPropertyMetaData> configProps;
+
+ /** The connection factory interface class */
+ private String connectionFactoryInterfaceClass;
+
+ /** The connection factory implementation class */
+ private String connectionFactoryImplementationClass;
+
+ /** The connection interface class */
+ private String connectionInterfaceClass;
+
+ /** The connection implementation class */
+ private String connectionImplementationClass;
+
+
+
+ /**
+ * Get the managed connection factory class
+ *
+ * @return the managed connection factory class
+ */
+ public String getManagedConnectionFactoryClass()
+ {
+ return managedConnectionFactoryClass;
+ }
+
+ /**
+ * Set the managed connection factory class
+ *
+ * @param managedConnectionFactoryClass the class name
+ */
+ public void setManagedConnectionFactoryClass(String managedConnectionFactoryClass)
+ {
+ this.managedConnectionFactoryClass = managedConnectionFactoryClass;
+ }
+
+ @XmlElement(name="config-property")
+ public void setConfigProps(List<ConfigPropertyMetaData> configProps) {
+ this.configProps = configProps;
+ }
+
+ public List<ConfigPropertyMetaData> getConfigProps() {
+ return configProps;
+ }
+ /**
+ * Get the connection factory interface class
+ *
+ * @return the connection factory interface class
+ */
+ public String getConnectionFactoryInterfaceClass()
+ {
+ return connectionFactoryInterfaceClass;
+ }
+
+ /**
+ * Set the connection factory interface class
+ *
+ * @param connectionFactoryInterfaceClass the class name
+ */
+ @XmlElement(name="connectionfactory-interface")
+ public void setConnectionFactoryInterfaceClass(String connectionFactoryInterfaceClass)
+ {
+ this.connectionFactoryInterfaceClass = connectionFactoryInterfaceClass;
+ }
+
+ /**
+ * Get the connection factory implementation class
+ *
+ * @return the connection factory implementation class
+ */
+ public String getConnectionFactoryImplementationClass()
+ {
+ return connectionFactoryImplementationClass;
+ }
+
+ /**
+ * Set the connection factory implementation class
+ *
+ * @param connectionFactoryImplementationClass the class name
+ */
+ @XmlElement(name="connectionfactory-impl-class")
+ public void setConnectionFactoryImplementationClass(String connectionFactoryImplementationClass)
+ {
+ this.connectionFactoryImplementationClass = connectionFactoryImplementationClass;
+ }
+
+ /**
+ * Get the connection interface class
+ *
+ * @return the connection interface class
+ */
+ public String getConnectionInterfaceClass()
+ {
+ return connectionInterfaceClass;
+ }
+
+ /**
+ * Set the connection interface class
+ *
+ * @param connectionInterfaceClass the class name
+ */
+ @XmlElement(name="connection-interface")
+ public void setConnectionInterfaceClass(String connectionInterfaceClass)
+ {
+ this.connectionInterfaceClass = connectionInterfaceClass;
+ }
+
+ /**
+ * Get the connection implementation class
+ *
+ * @return the connection implementation class
+ */
+ public String getConnectionImplementationClass()
+ {
+ return connectionImplementationClass;
+ }
+
+ /**
+ * Set the connection implementation class
+ *
+ * @param connectionImplementationClass the class name
+ */
+ @XmlElement(name="connection-impl-class")
+ public void setConnectionImplementationClass(String connectionImplementationClass)
+ {
+ this.connectionImplementationClass = connectionImplementationClass;
+ }
+
+ public String toString()
+ {
+ StringBuffer buffer = new StringBuffer();
+ buffer.append("ConnectionDefinitionMetaData").append('@');
+ buffer.append(Integer.toHexString(System.identityHashCode(this)));
+ buffer.append("[managedConnectionFactoryClass=").append(managedConnectionFactoryClass);
+ buffer.append(" connectionFactoryInterfaceClass=").append(connectionFactoryInterfaceClass);
+ buffer.append(" connectionFactoryImplementationClass=").append(connectionFactoryImplementationClass);
+ buffer.append(" connectionInterfaceClass=").append(connectionInterfaceClass);
+ buffer.append(" connectionImplementationClass=").append(connectionImplementationClass);
+ //buffer.append(" properties=").append(getProperties());
+ buffer.append(']');
+ return buffer.toString();
+ }
+}
Added: projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/ConnectorMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/ConnectorMetaData.java (rev 0)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/ConnectorMetaData.java 2008-10-09 05:15:53 UTC (rev 79285)
@@ -0,0 +1,262 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.metadata.rar.spec;
+
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlTransient;
+
+import org.jboss.metadata.javaee.support.IdMetaDataImplWithDescriptionGroup;
+
+
+/**
+ * Connector meta data
+ *
+ * @author <a href="mailto:adrian at jboss.com">Adrian Brock</a>
+ * @author Jeff Zhang
+ * @version $Revision: 76091 $
+ */
+public class ConnectorMetaData extends IdMetaDataImplWithDescriptionGroup
+{
+ private static final long serialVersionUID = 7047130842894140222L;
+
+ private String dtdPublicId;
+ private String dtdSystemId;
+ /** The version */
+ private String version;
+
+ /** The vendor name */
+ private String vendorName;
+
+ /** The eis type */
+ private String eisType;
+
+ /** The resource adapter version */
+ private String raVersion;
+
+ /** The resource adapter class */
+ private String raClass;
+
+ /** The license */
+ private LicenseMetaData lmd;
+
+ private ResourceAdapterMetaData ra;
+
+ /**
+ * Callback for the DTD information
+ * @param root
+ * @param publicId
+ * @param systemId
+ */
+ @XmlTransient
+ public void setDTD(String root, String publicId, String systemId)
+ {
+ this.dtdPublicId = publicId;
+ this.dtdSystemId = systemId;
+ }
+ /**
+ * Get the DTD public id if one was seen
+ * @return the value of the web.xml dtd public id
+ */
+ @XmlTransient
+ public String getDtdPublicId()
+ {
+ return dtdPublicId;
+ }
+ /**
+ * Get the DTD system id if one was seen
+ * @return the value of the web.xml dtd system id
+ */
+ @XmlTransient
+ public String getDtdSystemId()
+ {
+ return dtdSystemId;
+ }
+ /**
+ * Get the connector version
+ *
+ * @return the connector version
+ */
+ public String getVersion()
+ {
+ return version;
+ }
+ /**
+ * Set the connector version
+ *
+ * @param version the connector version
+ */
+ @XmlAttribute
+ public void setVersion(String version)
+ {
+ this.version = version;
+ }
+
+ /**
+ * Is this a servlet 2.3 version application
+ * @return true if this is a javaee 2.3 version application
+ */
+ @XmlTransient
+ public boolean is10()
+ {
+ return dtdPublicId != null && dtdPublicId.equals("-//Sun Microsystems, Inc.//DTD Connector 1.0//EN");
+ }
+ @XmlTransient
+ public boolean is15()
+ {
+ return version != null && version.equals("1.5");
+ }
+ @XmlTransient
+ public boolean is16()
+ {
+ return version != null && version.equals("1.6");
+ }
+
+ /**
+ * Get the vendor name
+ *
+ * @return the vendor name
+ */
+ public String getVendorName()
+ {
+ return vendorName;
+ }
+
+ /**
+ * Set the vendor name
+ *
+ * @param vendorName the vendor name
+ */
+ @XmlElement(name="vendor-name")
+ public void setVendorName(String vendorName)
+ {
+ this.vendorName = vendorName;
+ }
+
+ /**
+ * Get the eis type
+ *
+ * @return the eis type
+ */
+ public String getEISType()
+ {
+ return eisType;
+ }
+
+ /**
+ * Set the eis Type
+ *
+ * @param eisType the eis type
+ */
+ @XmlElement(name="eis-type")
+ public void setEISType(String eisType)
+ {
+ this.eisType = eisType;
+ }
+
+ /**
+ * Get the resource adapter version
+ *
+ * @return the resource adapter version
+ */
+ public String getRAVersion()
+ {
+ return raVersion;
+ }
+
+ /**
+ * Set the resource adapter version
+ *
+ * @param version the resource adapter version
+ */
+ @XmlElement(name="resourceadapter-version")
+ public void setRAVersion(String version)
+ {
+ this.raVersion = version;
+ }
+
+ /**
+ * Get the resource adapter class
+ *
+ * @return the resource adapter class
+ */
+ public String getRAClass()
+ {
+ return raClass;
+ }
+
+ /**
+ * Set the resource adapter class
+ *
+ * @param raClass the resource adapter class
+ */
+ public void setRAClass(String raClass)
+ {
+ this.raClass = raClass;
+ }
+
+ /**
+ * Get the license
+ *
+ * @return the license
+ */
+ public LicenseMetaData getLicense()
+ {
+ return lmd;
+ }
+ /**
+ * Get the license
+ *
+ * @return the license
+ */
+ @XmlElement(name="license")
+ public void setLicense(LicenseMetaData lmd)
+ {
+ this.lmd = lmd;
+ }
+
+ @XmlElement(name="resourceadapter")
+ public void setRa(ResourceAdapterMetaData ra) {
+ this.ra = ra;
+ }
+ public ResourceAdapterMetaData getRa() {
+ return ra;
+ }
+
+ public String toString()
+ {
+ StringBuffer buffer = new StringBuffer();
+ buffer.append("ConnectorMetaData").append('@');
+ buffer.append(Integer.toHexString(System.identityHashCode(this)));
+ buffer.append("[version=").append(version);
+ buffer.append(" vendorName=").append(vendorName);
+ buffer.append(" eisType=").append(eisType);
+ buffer.append(" resourceAdapterVersion=").append(raVersion);
+ buffer.append(" resourceAdapterClass=").append(raClass);
+ buffer.append(" license=").append(lmd);
+ //buffer.append(" properties=").append(getProperties());
+ //buffer.append(" descriptions=").append(descriptions.values());
+ buffer.append(']');
+ return buffer.toString();
+ }
+
+}
Deleted: projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/DependsMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/DependsMetaData.java 2008-10-09 04:45:01 UTC (rev 79284)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/DependsMetaData.java 2008-10-09 05:15:53 UTC (rev 79285)
@@ -1,66 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.metadata.rar.spec;
-
-import java.io.Serializable;
-
-/**
- * Depends meta data
- *
- * @author <a href="mailto:vicky.kak at jboss.com">Vicky Kak</a>
- */
-public class DependsMetaData implements Serializable
-{
- private static final long serialVersionUID = -4864068414581654366L;
-
- /** The dependsName */
- private String dependsName;
-
- /**
- * Get the dependsName
- *
- * @return the dependsName
- */
- public String getDependsName()
- {
- return dependsName;
- }
-
- /**
- * Set the dependsName
- *
- * @param dependsName the dependsName
- */
- public void setDependsName(String dependsName)
- {
- this.dependsName = dependsName;
- }
-
- public String toString()
- {
- StringBuffer buffer = new StringBuffer();
- buffer.append("DependsMetaData").append('@');
- buffer.append(Integer.toHexString(System.identityHashCode(this)));
- buffer.append("[dependsName=").append(dependsName).append(']');
- return buffer.toString();
- }
-}
Added: projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/DescriptionGroupMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/DescriptionGroupMetaData.java (rev 0)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/DescriptionGroupMetaData.java 2008-10-09 05:15:53 UTC (rev 79285)
@@ -0,0 +1,180 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.metadata.rar.spec;
+
+import java.io.Serializable;
+import java.util.Locale;
+
+/**
+ * Description group meta data
+ *
+ * @author <a href="mailto:adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 71554 $
+ */
+public class DescriptionGroupMetaData implements Serializable
+{
+ static final long serialVersionUID = 1324619949051028127L;
+
+ /** The language */
+ private String lang;
+
+ /** The description */
+ private String description;
+
+ /** The display name */
+ private String displayName;
+
+ /** The small icon */
+ private String smallIcon;
+
+ /** The large icon */
+ private String largeIcon;
+
+ /**
+ * Create a new description group meta data using the default langugage
+ */
+ public DescriptionGroupMetaData()
+ {
+ this(null);
+ }
+
+ /**
+ * Create a new description group meta data
+ *
+ * @param lang the language
+ */
+ public DescriptionGroupMetaData(String lang)
+ {
+ if (lang == null)
+ this.lang = Locale.getDefault().getLanguage();
+ else
+ this.lang = lang;
+ }
+
+ /**
+ * Get the language
+ *
+ * @return the language
+ */
+ public String getLanguage()
+ {
+ return lang;
+ }
+
+ /**
+ * Get the description
+ *
+ * @return the description
+ */
+ public String getDescription()
+ {
+ return description;
+ }
+
+ /**
+ * Set the description
+ *
+ * @param description the description
+ */
+ public void setDescription(String description)
+ {
+ this.description = description;
+ }
+
+ /**
+ * Get the display name
+ *
+ * @return the display name
+ */
+ public String getDisplayName()
+ {
+ return displayName;
+ }
+
+ /**
+ * Set the display name
+ *
+ * @param displayName the display name
+ */
+ public void setDisplayName(String displayName)
+ {
+ this.displayName = displayName;
+ }
+
+ /**
+ * Get the small icon
+ *
+ * @return the small icon
+ */
+ public String getSmallIcon()
+ {
+ return smallIcon;
+ }
+
+ /**
+ * Set the small icon
+ *
+ * @param icon the icon
+ */
+ public void setSmallIcon(String icon)
+ {
+ this.smallIcon = icon;
+ }
+
+ /**
+ * Get the large icon
+ *
+ * @return the large icon
+ */
+ public String getLargeIcon()
+ {
+ return largeIcon;
+ }
+
+ /**
+ * Set the large icon
+ *
+ * @param icon the icon
+ */
+ public void setLargeIcon(String icon)
+ {
+ this.largeIcon = icon;
+ }
+
+ public String toString()
+ {
+ StringBuffer buffer = new StringBuffer();
+ buffer.append("DescriptionGroupMetaData").append('@');
+ buffer.append(Integer.toHexString(System.identityHashCode(this)));
+ buffer.append("[language=").append(lang);
+ if (description != null)
+ buffer.append(" description=").append(description);
+ if (displayName != null)
+ buffer.append(" displayName=").append(displayName);
+ if (smallIcon != null)
+ buffer.append(" smallIcon=").append(smallIcon);
+ if (largeIcon != null)
+ buffer.append(" largeIcon=").append(largeIcon);
+ buffer.append(']');
+ return buffer.toString();
+ }
+}
Added: projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/DescriptionMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/DescriptionMetaData.java (rev 0)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/DescriptionMetaData.java 2008-10-09 05:15:53 UTC (rev 79285)
@@ -0,0 +1,105 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.metadata.rar.spec;
+
+import java.io.Serializable;
+import java.util.Locale;
+
+/**
+ * Description meta data
+ *
+ * @author <a href="mailto:adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 71554 $
+ */
+public class DescriptionMetaData implements Serializable
+{
+ static final long serialVersionUID = -3100028904830435509L;
+
+ /** The language */
+ private String lang;
+
+ /** The description */
+ private String description;
+
+ /**
+ * Create a new description meta data using the default langugage
+ */
+ public DescriptionMetaData()
+ {
+ this(null);
+ }
+
+ /**
+ * Create a new description meta data
+ *
+ * @param lang the language
+ */
+ public DescriptionMetaData(String lang)
+ {
+ if (lang == null)
+ this.lang = Locale.getDefault().getLanguage();
+ else
+ this.lang = lang;
+ }
+
+ /**
+ * Get the language
+ *
+ * @return the language
+ */
+ public String getLanguage()
+ {
+ return lang;
+ }
+
+ /**
+ * Get the description
+ *
+ * @return the description
+ */
+ public String getDescription()
+ {
+ return description;
+ }
+
+ /**
+ * Set the description
+ *
+ * @param description the description
+ */
+ public void setDescription(String description)
+ {
+ this.description = description;
+ }
+
+ public String toString()
+ {
+ StringBuffer buffer = new StringBuffer();
+ buffer.append("DescriptionMetaData").append('@');
+ buffer.append(Integer.toHexString(System.identityHashCode(this)));
+ buffer.append("[language=").append(lang);
+ if (description != null)
+ buffer.append(" description=").append(description);
+ buffer.append(']');
+ return buffer.toString();
+ }
+}
Added: projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/DescriptionMetaDataContainer.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/DescriptionMetaDataContainer.java (rev 0)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/DescriptionMetaDataContainer.java 2008-10-09 05:15:53 UTC (rev 79285)
@@ -0,0 +1,111 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.metadata.rar.spec;
+
+import java.io.Serializable;
+import java.util.Collection;
+import java.util.Iterator;
+import java.util.Locale;
+import java.util.concurrent.ConcurrentHashMap;
+
+/**
+ * An abstract class for meta data that has descriptions
+ *
+ * @author <a href="mailto:adrian at jboss.org">Adrian Brock</a>
+ * @version $Revision: 76091 $
+ */
+public class DescriptionMetaDataContainer implements Serializable
+{
+ private static final long serialVersionUID = -8988666040600469357L;
+
+ /** The descriptions */
+ private ConcurrentHashMap<String, DescriptionMetaData> descriptions = new ConcurrentHashMap<String, DescriptionMetaData>();
+
+ public DescriptionMetaDataContainer()
+ {
+ DescriptionMetaData dmd = new DescriptionMetaData();
+ descriptions.put(dmd.getLanguage(), dmd);
+ }
+
+ /**
+ * Get the desription for the default language
+ * or the first description if there is no default
+ *
+ * @return the description for the default language
+ */
+ public DescriptionMetaData getDescription()
+ {
+ // Try the default locale
+ DescriptionMetaData dmd = descriptions.get(Locale.getDefault().getLanguage());
+ // No description using the default locale, just use the first
+ if (dmd == null)
+ {
+ for (Iterator<DescriptionMetaData> i = descriptions.values().iterator(); i.hasNext();)
+ {
+ dmd = i.next();
+ break;
+ }
+ }
+ return dmd;
+ }
+
+ /**
+ * Get the description for the give language
+ *
+ * @param lang the language
+ * @return the description
+ */
+ public DescriptionMetaData getDescription(String lang)
+ {
+ return descriptions.get(lang);
+ }
+
+ /**
+ * Add a description
+ *
+ * @param dmd the description
+ */
+ public void addDescription(DescriptionMetaData dmd)
+ {
+ descriptions.put(dmd.getLanguage(), dmd);
+ }
+
+ /**
+ * Get the descriptions
+ *
+ * @return the descriptions
+ */
+ public Collection<DescriptionMetaData> getDescriptions()
+ {
+ return descriptions.values();
+ }
+
+ public String toString()
+ {
+ StringBuffer buffer = new StringBuffer();
+ buffer.append("DescriptionMetaDataContainer").append('@');
+ buffer.append(Integer.toHexString(System.identityHashCode(this)));
+ buffer.append("[descriptions=").append(descriptions.values());
+ buffer.append(']');
+ return buffer.toString();
+ }
+}
Added: projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/InboundRaMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/InboundRaMetaData.java (rev 0)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/InboundRaMetaData.java 2008-10-09 05:15:53 UTC (rev 79285)
@@ -0,0 +1,49 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.metadata.rar.spec;
+
+
+import javax.xml.bind.annotation.XmlElement;
+import org.jboss.metadata.javaee.support.IdMetaDataImpl;
+
+/**
+ * inbound ResourceAdapter meta data
+ *
+ * @author Jeff Zhang
+ * @version $Revision: $
+ */
+public class InboundRaMetaData extends IdMetaDataImpl
+{
+ private static final long serialVersionUID = -1583292998359497984L;
+
+ private MessageAdapterMetaData messageAdapter;
+
+ @XmlElement(name="messageadapter")
+ public void setMessageAdapter(MessageAdapterMetaData messageAdapter) {
+ this.messageAdapter = messageAdapter;
+ }
+
+ public MessageAdapterMetaData getMessageAdapter() {
+ return messageAdapter;
+ }
+
+}
Deleted: projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/JBossRAMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/JBossRAMetaData.java 2008-10-09 04:45:01 UTC (rev 79284)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/JBossRAMetaData.java 2008-10-09 05:15:53 UTC (rev 79285)
@@ -1,51 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.metadata.rar.spec;
-
-import java.util.List;
-import org.jboss.metadata.rar.jboss.ConfigPropertyMetaDataContainer;
-import org.jboss.util.collection.CollectionsFactory;
-
-/**
- * A JBossRAMetaData.
- *
- * @author <a href="weston.price at jboss.com">Weston Price</a>
- * @author <a href="vicky.kak at jboss.com">Vicky Kak</a>
- * @version $Revision: 75672 $
- */
-public class JBossRAMetaData extends ConfigPropertyMetaDataContainer
-{
- /** The serialVersionUID */
- private static final long serialVersionUID = -8041048198795930659L;
-
- private List<DependsMetaData> dependsNameList = CollectionsFactory.createLazyList();
-
- public void addDependsMetaData(DependsMetaData dmd)
- {
- dependsNameList.add(dmd);
- }
-
- public List<DependsMetaData> getDependsMetaData()
- {
- return dependsNameList;
- }
-}
Added: projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/LicenseMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/LicenseMetaData.java (rev 0)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/LicenseMetaData.java 2008-10-09 05:15:53 UTC (rev 79285)
@@ -0,0 +1,72 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.metadata.rar.spec;
+
+import javax.xml.bind.annotation.XmlElement;
+import org.jboss.metadata.javaee.support.IdMetaDataImplWithDescriptions;
+
+/**
+ * License meta data
+ *
+ * @author <a href="mailto:adrian at jboss.com">Adrian Brock</a>
+ * @author Jeff Zhang
+ * @version $Revision: 71554 $
+ */
+public class LicenseMetaData extends IdMetaDataImplWithDescriptions
+{
+ private static final long serialVersionUID = -1583292998139497934L;
+
+ /** license required */
+ private boolean required = false;
+
+ /**
+ * Get the license required flag
+ *
+ * @return the license required flag
+ */
+ public boolean getRequired()
+ {
+ return required;
+ }
+
+ /**
+ * Set the license required flag
+ *
+ * @param required the required flag
+ */
+ @XmlElement(name="license-required")
+ public void setRequired(boolean required)
+ {
+ this.required = required;
+ }
+
+ public String toString()
+ {
+ StringBuffer buffer = new StringBuffer();
+ buffer.append("LicenseMetaData").append('@');
+ buffer.append(Integer.toHexString(System.identityHashCode(this)));
+ buffer.append("[required=").append(required);
+ buffer.append(" descriptions=").append(getDescriptions());
+ buffer.append(']');
+ return buffer.toString();
+ }
+}
Added: projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/MessageAdapterMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/MessageAdapterMetaData.java (rev 0)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/MessageAdapterMetaData.java 2008-10-09 05:15:53 UTC (rev 79285)
@@ -0,0 +1,50 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.metadata.rar.spec;
+
+
+import java.util.List;
+
+import javax.xml.bind.annotation.XmlElement;
+import org.jboss.metadata.javaee.support.IdMetaDataImpl;
+
+/**
+ * Message Adapter meta data
+ *
+ * @author Jeff Zhang
+ * @version $Revision: $
+ */
+public class MessageAdapterMetaData extends IdMetaDataImpl
+{
+ private static final long serialVersionUID = -1583492998359497984L;
+
+ private List<MessageListenerMetaData> messageListeners;
+
+ @XmlElement(name="messagelistener")
+ public void setMessageListeners(List<MessageListenerMetaData> messageListeners) {
+ this.messageListeners = messageListeners;
+ }
+
+ public List<MessageListenerMetaData> getMessageListeners() {
+ return messageListeners;
+ }
+}
Added: projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/MessageListenerMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/MessageListenerMetaData.java (rev 0)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/MessageListenerMetaData.java 2008-10-09 05:15:53 UTC (rev 79285)
@@ -0,0 +1,99 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.metadata.rar.spec;
+
+import javax.xml.bind.annotation.XmlElement;
+
+import org.jboss.metadata.javaee.support.IdMetaDataImpl;
+
+/**
+ * Message listener meta data
+ *
+ * @author <a href="mailto:adrian at jboss.com">Adrian Brock</a>
+ * @author Jeff Zhang
+ * @version $Revision: 75672 $
+ */
+public class MessageListenerMetaData extends IdMetaDataImpl
+{
+ private static final long serialVersionUID = -3196418073906964586L;
+
+ /** The message listener type */
+ private String type;
+
+ /** The activation spec type */
+ private ActivationspecMetaData asType;
+
+ /**
+ * Get the message listener type
+ *
+ * @return the message listener type
+ */
+ public String getType()
+ {
+ return type;
+ }
+
+ /**
+ * Set the message listener type
+ *
+ * @param type the message listener type
+ */
+ @XmlElement(name="messagelistener-type")
+ public void setType(String type)
+ {
+ this.type = type;
+ }
+
+ /**
+ * Get the activation spec type
+ *
+ * @return the activation spec type
+ */
+ public ActivationspecMetaData getActivationSpecType()
+ {
+ return asType;
+ }
+
+ /**
+ * Set the activation spec type
+ *
+ * @param type the activation spec type
+ */
+ @XmlElement(name="activationspec")
+ public void setActivationSpecType(ActivationspecMetaData type)
+ {
+ this.asType = type;
+ }
+
+
+ public String toString()
+ {
+ StringBuffer buffer = new StringBuffer();
+ buffer.append("MessageListenerMetaData").append('@');
+ buffer.append(Integer.toHexString(System.identityHashCode(this)));
+ buffer.append("[type=").append(type);
+ buffer.append(" activationSpecType=").append(asType);
+ //buffer.append(" requiredProperties=").append(requiredProperties);
+ buffer.append(']');
+ return buffer.toString();
+ }
+}
Added: projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/OutboundRaMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/OutboundRaMetaData.java (rev 0)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/OutboundRaMetaData.java 2008-10-09 05:15:53 UTC (rev 79285)
@@ -0,0 +1,78 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.metadata.rar.spec;
+
+import java.util.List;
+import javax.xml.bind.annotation.XmlElement;
+import org.jboss.metadata.javaee.support.IdMetaDataImpl;
+
+/**
+ * outbound ResourceAdapter meta data
+ *
+ * @author Jeff Zhang
+ * @version $Revision: $
+ */
+public class OutboundRaMetaData extends IdMetaDataImpl
+{
+ private static final long serialVersionUID = -1583292998339497984L;
+
+ private List<ConnectionDefinitionMetaData> conDefs;
+ private TransactionSupportMetaData transSupport;
+ private List<AuthenticationMechanismMetaData> authMechanisms;
+ private boolean reAuthSupport;
+
+ @XmlElement(name="connection-definition")
+ public void setConDefs(List<ConnectionDefinitionMetaData> conDefs) {
+ this.conDefs = conDefs;
+ }
+
+ public List<ConnectionDefinitionMetaData> getConDefs() {
+ return conDefs;
+ }
+
+ @XmlElement(name="transaction-support")
+ public void setTransSupport(TransactionSupportMetaData transSupport) {
+ this.transSupport = transSupport;
+ }
+
+ public TransactionSupportMetaData getTransSupport() {
+ return transSupport;
+ }
+
+ @XmlElement(name="authentication-mechanism")
+ public void setAuthMechanisms(List<AuthenticationMechanismMetaData> authMechanisms) {
+ this.authMechanisms = authMechanisms;
+ }
+
+ public List<AuthenticationMechanismMetaData> getAuthMechanisms() {
+ return authMechanisms;
+ }
+
+ @XmlElement(name="reauthentication-support")
+ public void setReAuthSupport(boolean reAuthSupport) {
+ this.reAuthSupport = reAuthSupport;
+ }
+
+ public boolean isReAuthSupport() {
+ return reAuthSupport;
+ }
+}
Deleted: projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/RARDeploymentMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/RARDeploymentMetaData.java 2008-10-09 04:45:01 UTC (rev 79284)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/RARDeploymentMetaData.java 2008-10-09 05:15:53 UTC (rev 79285)
@@ -1,59 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.metadata.rar.spec;
-
-import java.io.Serializable;
-import org.jboss.metadata.rar.jboss.ConnectorMetaData;
-
-/**
- * A RARDeploymentMetaData.
- *
- * @author <a href="weston.price at jboss.com">Weston Price</a>
- * @version $Revision: 75672 $
- */
-public class RARDeploymentMetaData implements Serializable
-{
- private static final long serialVersionUID = 5812689890896027289L;
-
- private ConnectorMetaData connectorMetaData = new ConnectorMetaData();
- private JBossRAMetaData raXmlMetaData = new JBossRAMetaData();
-
- public ConnectorMetaData getConnectorMetaData()
- {
- return connectorMetaData;
- }
-
- public void setConnectorMetaData(ConnectorMetaData connectorMetaData)
- {
- this.connectorMetaData = connectorMetaData;
- }
-
- public JBossRAMetaData getRaXmlMetaData()
- {
- return raXmlMetaData;
- }
-
- public void setRaXmlMetaData(JBossRAMetaData raXmlMetaData)
- {
- this.raXmlMetaData = raXmlMetaData;
- }
-}
Added: projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/RequiredConfigPropertyMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/RequiredConfigPropertyMetaData.java (rev 0)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/RequiredConfigPropertyMetaData.java 2008-10-09 05:15:53 UTC (rev 79285)
@@ -0,0 +1,73 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.metadata.rar.spec;
+
+import javax.xml.bind.annotation.XmlElement;
+
+import org.jboss.metadata.javaee.support.IdMetaDataImplWithDescriptionGroup;
+
+/**
+ * Required Config property meta data
+ *
+ * @author <a href="mailto:adrian at jboss.com">Adrian Brock</a>
+ * @author Jeff Zhang
+ * @version $Revision: 71554 $
+ */
+public class RequiredConfigPropertyMetaData extends IdMetaDataImplWithDescriptionGroup
+{
+ static final long serialVersionUID = 7276282462933038174L;
+
+ /** The name */
+ private String name;
+
+ /**
+ * Get the name
+ *
+ * @return the name
+ */
+ public String getName()
+ {
+ return name;
+ }
+
+ /**
+ * Set the name
+ *
+ * @param name the name
+ */
+ @XmlElement(name="config-property-name")
+ public void setName(String name)
+ {
+ this.name = name;
+ }
+
+ public String toString()
+ {
+ StringBuffer buffer = new StringBuffer();
+ buffer.append("RequiredConfigPropertyMetaData").append('@');
+ buffer.append(Integer.toHexString(System.identityHashCode(this)));
+ buffer.append("[name=").append(name);
+ //buffer.append(" descriptions=").append(getDescriptions());
+ buffer.append(']');
+ return buffer.toString();
+ }
+}
Added: projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/ResourceAdapterMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/ResourceAdapterMetaData.java (rev 0)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/ResourceAdapterMetaData.java 2008-10-09 05:15:53 UTC (rev 79285)
@@ -0,0 +1,98 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.metadata.rar.spec;
+
+import java.util.List;
+import javax.xml.bind.annotation.XmlElement;
+import org.jboss.metadata.javaee.support.IdMetaDataImplWithDescriptions;
+
+/**
+ * ResourceAdapter meta data
+ *
+ * @author Jeff Zhang
+ * @version $Revision: $
+ */
+public class ResourceAdapterMetaData extends IdMetaDataImplWithDescriptions
+{
+ private static final long serialVersionUID = -1583292998139497984L;
+
+ private String raClass;
+ private List<ConfigPropertyMetaData> configProperty;
+ private OutboundRaMetaData outboundRa;
+ private InboundRaMetaData inboundRa;
+ private List<AdminObjectMetaData> adminObjects;
+ private List<SecurityPermissionMetaData> securityPermissions;
+
+ @XmlElement(name="resourceadapter-class")
+ public void setRaClass(String raClass) {
+ this.raClass = raClass;
+ }
+
+ public String getRaClass() {
+ return raClass;
+ }
+
+ @XmlElement(name="config-property")
+ public void setConfigProperty(List<ConfigPropertyMetaData> configProperty) {
+ this.configProperty = configProperty;
+ }
+
+ public List<ConfigPropertyMetaData> getConfigProperty() {
+ return configProperty;
+ }
+
+ @XmlElement(name="outbound-resourceadapter")
+ public void setOutboundRa(OutboundRaMetaData outboundRa) {
+ this.outboundRa = outboundRa;
+ }
+
+ public OutboundRaMetaData getOutboundRa() {
+ return outboundRa;
+ }
+
+ @XmlElement(name="inbound-resourceadapter")
+ public void setInboundRa(InboundRaMetaData inboundRa) {
+ this.inboundRa = inboundRa;
+ }
+
+ public InboundRaMetaData getInboundRa() {
+ return inboundRa;
+ }
+
+ @XmlElement(name="adminobject")
+ public void setAdminObjects(List<AdminObjectMetaData> adminObjects) {
+ this.adminObjects = adminObjects;
+ }
+
+ public List<AdminObjectMetaData> getAdminObjects() {
+ return adminObjects;
+ }
+
+ @XmlElement(name="security-permission")
+ public void setSecurityPermissions(List<SecurityPermissionMetaData> securityPermissions) {
+ this.securityPermissions = securityPermissions;
+ }
+
+ public List<SecurityPermissionMetaData> getSecurityPermissions() {
+ return securityPermissions;
+ }
+}
Added: projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/SecurityPermissionMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/SecurityPermissionMetaData.java (rev 0)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/SecurityPermissionMetaData.java 2008-10-09 05:15:53 UTC (rev 79285)
@@ -0,0 +1,73 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.metadata.rar.spec;
+
+import javax.xml.bind.annotation.XmlElement;
+
+import org.jboss.metadata.javaee.support.IdMetaDataImplWithDescriptionGroup;
+
+/**
+ * Security Permission meta data
+ *
+ * @author <a href="mailto:adrian at jboss.com">Adrian Brock</a>
+ * @author Jeff Zhang
+ * @version $Revision: 71554 $
+ */
+public class SecurityPermissionMetaData extends IdMetaDataImplWithDescriptionGroup
+{
+ private static final long serialVersionUID = -2819460637074430187L;
+
+ /** The security permission spec */
+ private String securityPermissionSpec;
+
+ /**
+ * Get the security permission spec
+ *
+ * @return the security permission spec
+ */
+ public String getSecurityPermissionSpec()
+ {
+ return securityPermissionSpec;
+ }
+
+ /**
+ * Set the security permission spec
+ *
+ * @param securityPermissionSpec the spec
+ */
+ @XmlElement(name="security-permission-spec")
+ public void setSecurityPermissionSpec(String securityPermissionSpec)
+ {
+ this.securityPermissionSpec = securityPermissionSpec;
+ }
+
+ public String toString()
+ {
+ StringBuffer buffer = new StringBuffer();
+ buffer.append("SecurityPermissionMetaData").append('@');
+ buffer.append(Integer.toHexString(System.identityHashCode(this)));
+ buffer.append("[spec=").append(securityPermissionSpec);
+ //buffer.append(" descriptions=").append(getDescriptions());
+ buffer.append(']');
+ return buffer.toString();
+ }
+}
Added: projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/TransactionSupportMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/TransactionSupportMetaData.java (rev 0)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/rar/spec/TransactionSupportMetaData.java 2008-10-09 05:15:53 UTC (rev 79285)
@@ -0,0 +1,41 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.metadata.rar.spec;
+
+import javax.xml.bind.annotation.XmlEnum;
+import javax.xml.bind.annotation.XmlType;
+
+/**
+ * Transaction Support meta data
+ *
+ * @author <a href="mailto:adrian at jboss.com">Adrian Brock</a>
+ * @author Jeff Zhang
+ * @version $Revision: 71554 $
+ */
+ at XmlType(name="TransactionSupportMetaData")
+ at XmlEnum(String.class)
+public enum TransactionSupportMetaData
+{
+ NoTransaction, LocalTransaction, XATransaction
+
+}
+
More information about the jboss-cvs-commits
mailing list