[jboss-cvs] JBossAS SVN: r94363 - in projects/ejb3/trunk: metadata-impl and 10 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Oct 5 08:34:16 EDT 2009
Author: jaikiran
Date: 2009-10-05 08:34:15 -0400 (Mon, 05 Oct 2009)
New Revision: 94363
Added:
projects/ejb3/trunk/metadata-impl/
projects/ejb3/trunk/metadata-impl/pom.xml
projects/ejb3/trunk/metadata-impl/src/
projects/ejb3/trunk/metadata-impl/src/main/
projects/ejb3/trunk/metadata-impl/src/main/java/
projects/ejb3/trunk/metadata-impl/src/main/java/org/
projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/
projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/
projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/
projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/
projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/
projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/AroundInvokeMetadataImpl.java
projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/EjbLocalRefMetadataImpl.java
projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/EjbRefMetadataImpl.java
projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/EnterpriseBeanMetadataImpl.java
projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/EnvEntryMetadataImpl.java
projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/IdMetadataImpl.java
projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/InitMethodMetadataImpl.java
projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/InjectionTargetMetadataImpl.java
projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/LifecycleCallbackMetadataImpl.java
projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/MethodParamsMetadataImpl.java
projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/NamedMethodMetadataImpl.java
projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/PersistenceContextRefMetadataImpl.java
projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/PersistenceUnitRefMetadataImpl.java
projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/PropertyMetadataImpl.java
projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/ResourceEnvRefMetadataImpl.java
projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/ResourceRefMetadataImpl.java
projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/RunAsMetadataImpl.java
projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/SecurityIdentityMetadataImpl.java
projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/ServiceRefMetadataImpl.java
projects/ejb3/trunk/metadata-impl/src/main/resources/
projects/ejb3/trunk/metadata-impl/src/test/
projects/ejb3/trunk/metadata-impl/src/test/java/
projects/ejb3/trunk/metadata-impl/src/test/resources/
Log:
EJBTHREE-1932 Initial version of the implementation for ejb3-metadata-spi
Added: projects/ejb3/trunk/metadata-impl/pom.xml
===================================================================
--- projects/ejb3/trunk/metadata-impl/pom.xml (rev 0)
+++ projects/ejb3/trunk/metadata-impl/pom.xml 2009-10-05 12:34:15 UTC (rev 94363)
@@ -0,0 +1,53 @@
+<!--
+ vi:ts=2:sw=2:expandtab
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <groupId>org.jboss.ejb3</groupId>
+ <artifactId>jboss-ejb3-build</artifactId>
+ <version>1.0.4</version>
+ <relativePath>../build/pom.xml</relativePath>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>jboss-ejb3-metadata-impl</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <packaging>jar</packaging>
+ <name>JBoss EJB 3.x Meta Data Impl</name>
+ <url>http://www.jboss.org</url>
+ <description>
+ JBoss EJB3 Metadata Implementation based on org.jboss.metadata:metadata-ejb.
+ </description>
+
+ <dependencies>
+
+ <dependency>
+ <groupId>org.jboss.logging</groupId>
+ <artifactId>jboss-logging-spi</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jboss.ejb3</groupId>
+ <artifactId>jboss-ejb3-metadata-spi</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jboss.metadata</groupId>
+ <artifactId>jboss-metadata-ejb</artifactId>
+ <version>2.0.0-SNAPSHOT</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jboss.metadata</groupId>
+ <artifactId>jboss-metadata-common</artifactId>
+ <version>2.0.0-SNAPSHOT</version>
+ </dependency>
+
+ </dependencies>
+</project>
Property changes on: projects/ejb3/trunk/metadata-impl/pom.xml
___________________________________________________________________
Name: svn:executable
+ *
Added: projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/AroundInvokeMetadataImpl.java
===================================================================
--- projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/AroundInvokeMetadataImpl.java (rev 0)
+++ projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/AroundInvokeMetadataImpl.java 2009-10-05 12:34:15 UTC (rev 94363)
@@ -0,0 +1,112 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt 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.ejb3.metadata.impl.javaee;
+
+import org.jboss.ejb3.metadata.spi.javaee.AroundInvokeMetaData;
+
+/**
+ * AroundInvokeMetadataImpl
+ *
+ * Represents the metadata for around-invoke
+ *
+ * @see AroundInvokeMetaData
+ *
+ * @author Jaikiran Pai
+ * @version $Revision: $
+ */
+public class AroundInvokeMetadataImpl implements AroundInvokeMetaData
+{
+
+ /**
+ * Delegate from which this {@link AroundInvokeMetadataImpl} was constructed
+ */
+ private org.jboss.metadata.ejb.spec.AroundInvokeMetaData delegate;
+
+ /**
+ * The classname specified in this around-invoke
+ */
+ private String classname;
+
+ /**
+ * The around-invoke method name
+ */
+ private String methodName;
+
+ /**
+ * Constructor
+ * Creates a {@link AroundInvokeMetadataImpl} out of a {@link org.jboss.metadata.ejb.spec.AroundInvokeMetaData}
+ *
+ * @param aroundInvoke
+ */
+ public AroundInvokeMetadataImpl(org.jboss.metadata.ejb.spec.AroundInvokeMetaData aroundInvoke)
+ {
+ this.initialize(aroundInvoke);
+ }
+
+ /**
+ * Initializes this {@link AroundInvokeMetadataImpl} from the state in {@link org.jboss.metadata.ejb.spec.AroundInvokeMetaData}
+ *
+ * @param aroundInvoke
+ */
+ private void initialize(org.jboss.metadata.ejb.spec.AroundInvokeMetaData aroundInvoke)
+ {
+ // set the delegate
+ this.delegate = aroundInvoke;
+ this.classname = this.delegate.getClassName();
+ this.methodName = this.delegate.getMethodName();
+
+ }
+ /**
+ * @see AroundInvokeMetaData#getClassname()
+ */
+ public String getClassname()
+ {
+ return this.classname;
+ }
+
+ /**
+ * @see AroundInvokeMetaData#getMethodName()
+ */
+ public String getMethodName()
+ {
+ return this.methodName;
+ }
+
+ /**
+ * @see AroundInvokeMetaData#setClassname(String)
+ */
+ public void setClassname(String classname)
+ {
+ this.classname = classname;
+
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void setMethodName(String methodName)
+ {
+ this.methodName = methodName;
+
+ }
+
+}
Added: projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/EjbLocalRefMetadataImpl.java
===================================================================
--- projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/EjbLocalRefMetadataImpl.java (rev 0)
+++ projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/EjbLocalRefMetadataImpl.java 2009-10-05 12:34:15 UTC (rev 94363)
@@ -0,0 +1,255 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt 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.ejb3.metadata.impl.javaee;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Set;
+
+import org.jboss.ejb3.metadata.spi.javaee.DescriptionMetaData;
+import org.jboss.ejb3.metadata.spi.javaee.EjbLocalRefMetaData;
+import org.jboss.ejb3.metadata.spi.javaee.EjbRefType;
+import org.jboss.ejb3.metadata.spi.javaee.InjectionTargetMetaData;
+import org.jboss.metadata.javaee.spec.EJBLocalReferenceMetaData;
+import org.jboss.metadata.javaee.spec.EJBReferenceType;
+import org.jboss.metadata.javaee.spec.ResourceInjectionTargetMetaData;
+
+/**
+ * EjbLocalRefMetadataImpl
+ *
+ * Represents the metadata for a ejb-local-ref
+ *
+ * @see EjbLocalRefMetaData
+ *
+ * @author Jaikiran Pai
+ * @version $Revision: $
+ */
+public class EjbLocalRefMetadataImpl extends IdMetadataImpl implements EjbLocalRefMetaData
+{
+
+ /**
+ * Delegate from which this {@link EjbLocalRefMetadataImpl} was constructed
+ */
+ private EJBLocalReferenceMetaData delegate;
+
+ /**
+ * ejb-link
+ */
+ private String ejbLink;
+
+ /**
+ * The ejb-ref name
+ */
+ private String ejbRefName;
+
+ /**
+ * The ejb-ref type
+ */
+ private EjbRefType ejbRefType;
+
+ /**
+ * Injection targets
+ */
+ private List<InjectionTargetMetaData> injectionTargets;
+
+ /**
+ * Fully qualified classname of the local interface
+ */
+ private String local;
+
+ /**
+ * Fully qualified classname of the localhome interface
+ */
+ private String localHome;
+
+ /**
+ * Mapped name
+ */
+ private String mappedName;
+
+ /**
+ * Constructs an {@link EjbLocalRefMetadataImpl} from an {@link EJBLocalReferenceMetaData}
+ *
+ * @param ejbLocalRef
+ */
+ public EjbLocalRefMetadataImpl(EJBLocalReferenceMetaData ejbLocalRef)
+ {
+ super(ejbLocalRef.getId());
+ initialize(ejbLocalRef);
+ }
+
+ /**
+ * Initializes this {@link EjbLocalRefMetadataImpl} from the state in {@link EJBLocalReferenceMetaData}
+ *
+ * @param ejblocalRef
+ */
+ private void initialize(EJBLocalReferenceMetaData ejblocalRef)
+ {
+ // set the delegate
+ this.delegate = ejblocalRef;
+
+ this.ejbLink = this.delegate.getLink();
+ this.ejbRefName = this.delegate.getEjbRefName();
+ this.local = this.delegate.getLocal();
+ this.localHome = this.delegate.getLocalHome();
+ this.mappedName = this.delegate.getMappedName();
+
+ // set the ejb-ref-type
+ EJBReferenceType delegateEjbRefType = this.delegate.getEjbRefType();
+ if (delegateEjbRefType != null)
+ {
+ this.ejbRefType = delegateEjbRefType == EJBReferenceType.Entity ? EjbRefType.ENTITY : EjbRefType.SESSION;
+ }
+
+ // injection targets
+ Set<ResourceInjectionTargetMetaData> injectionTargetsMD = this.delegate.getInjectionTargets();
+ if (injectionTargetsMD != null)
+ {
+ this.injectionTargets = new ArrayList<InjectionTargetMetaData>(injectionTargetsMD.size());
+ for (ResourceInjectionTargetMetaData injectionTarget : injectionTargetsMD)
+ {
+ this.injectionTargets.add(new InjectionTargetMetadataImpl(injectionTarget));
+ }
+ }
+
+ }
+
+ public List<DescriptionMetaData> getDescription()
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public String getEjbLink()
+ {
+ return this.ejbLink;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public String getEjbRefName()
+ {
+ return this.ejbRefName;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public EjbRefType getEjbRefType()
+ {
+ return this.ejbRefType;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public List<InjectionTargetMetaData> getInjectionTargets()
+ {
+ return this.injectionTargets;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public String getLocal()
+ {
+ return this.local;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public String getLocalHome()
+ {
+ return this.localHome;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public String getMappedName()
+ {
+ return this.mappedName;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void setEjbLink(String ejbLink)
+ {
+ this.ejbLink = ejbLink;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void setEjbRefName(String ejbRefName)
+ {
+ this.ejbRefName = ejbRefName;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void setEjbRefType(EjbRefType ejbRefType)
+ {
+ this.ejbRefType = ejbRefType;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void setInjectionTargets(List<InjectionTargetMetaData> injectionTargets)
+ {
+ this.injectionTargets = injectionTargets;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void setLocal(String value)
+ {
+ this.local = value;
+
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void setLocalHome(String localHome)
+ {
+ this.localHome = localHome;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void setMappedName(String mappedName)
+ {
+ this.mappedName = mappedName;
+ }
+
+}
Added: projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/EjbRefMetadataImpl.java
===================================================================
--- projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/EjbRefMetadataImpl.java (rev 0)
+++ projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/EjbRefMetadataImpl.java 2009-10-05 12:34:15 UTC (rev 94363)
@@ -0,0 +1,260 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt 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.ejb3.metadata.impl.javaee;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Set;
+
+import org.jboss.ejb3.metadata.spi.javaee.DescriptionMetaData;
+import org.jboss.ejb3.metadata.spi.javaee.EjbRefMetaData;
+import org.jboss.ejb3.metadata.spi.javaee.EjbRefType;
+import org.jboss.ejb3.metadata.spi.javaee.InjectionTargetMetaData;
+import org.jboss.metadata.javaee.spec.EJBReferenceMetaData;
+import org.jboss.metadata.javaee.spec.EJBReferenceType;
+import org.jboss.metadata.javaee.spec.ResourceInjectionTargetMetaData;
+
+/**
+ * EjbRefMetadataImpl
+ *
+ * Represents the metadata for ejb-ref
+ *
+ * @see EjbRefMetaData
+ *
+ * @author Jaikiran Pai
+ * @version $Revision: $
+ */
+public class EjbRefMetadataImpl extends IdMetadataImpl implements EjbRefMetaData
+{
+
+ /**
+ * Delegate from which this {@link EjbRefMetadataImpl} was constructed
+ */
+ private EJBReferenceMetaData delegate;
+
+ /**
+ * ejb-link
+ */
+ private String ejbLink;
+
+ /**
+ * The ejb-ref-name
+ */
+ private String ejbRefName;
+
+ /**
+ * ejb-ref-type
+ */
+ private EjbRefType ejbRefType;
+
+ /**
+ * Fully qualified classname of the home interface
+ */
+ private String home;
+
+ /**
+ * injection targets
+ */
+ private List<InjectionTargetMetaData> injectionTargets;
+
+ /**
+ * mapped-name specified in this ejb-ref
+ */
+ private String mappedName;
+
+ /**
+ * Fully qualified classname of the remote interface
+ */
+ private String remote;
+
+ /**
+ * Constructs an {@link EjbRefMetadataImpl} from an {@link EJBReferenceMetaData}
+ *
+ * @param ejbRef
+ */
+ public EjbRefMetadataImpl(EJBReferenceMetaData ejbRef)
+ {
+ super(ejbRef.getId());
+ initialize(ejbRef);
+ }
+
+ /**
+ * Initializes this {@link EjbRefMetadataImpl} from the state in {@link EJBReferenceMetaData}
+ *
+ * @param ejbRef The {@link EJBReferenceMetaData} whose state will be used to initialize this
+ * {@link EjbRefMetadataImpl}
+ */
+ private void initialize(EJBReferenceMetaData ejbRef)
+ {
+ // set the delegate
+ this.delegate = ejbRef;
+
+ this.ejbLink = this.delegate.getLink();
+ this.ejbRefName = this.delegate.getEjbRefName();
+ this.home = this.delegate.getHome();
+ this.mappedName = this.delegate.getMappedName();
+ this.remote = this.delegate.getRemote();
+
+ // ejb-ref-type
+ EJBReferenceType delegateEjbRefType = this.delegate.getEjbRefType();
+ if (delegateEjbRefType != null)
+ {
+ this.ejbRefType = delegateEjbRefType == EJBReferenceType.Session ? EjbRefType.SESSION : EjbRefType.ENTITY;
+ }
+
+ // injection targets
+ Set<ResourceInjectionTargetMetaData> injectionTargetsMD = this.delegate.getInjectionTargets();
+ if (injectionTargetsMD != null)
+ {
+ this.injectionTargets = new ArrayList<InjectionTargetMetaData>(injectionTargetsMD.size());
+ for (ResourceInjectionTargetMetaData injectionTarget : injectionTargetsMD)
+ {
+ this.injectionTargets.add(new InjectionTargetMetadataImpl(injectionTarget));
+ }
+ }
+ }
+
+ public List<DescriptionMetaData> getDescription()
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public String getEjbLink()
+ {
+ return this.ejbLink;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public String getEjbRefName()
+ {
+ return this.ejbRefName;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public EjbRefType getEjbRefType()
+ {
+ return this.ejbRefType;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public String getHome()
+ {
+ return this.home;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public List<InjectionTargetMetaData> getInjectionTargets()
+ {
+ return this.injectionTargets;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public String getMappedName()
+ {
+ return this.mappedName;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public String getRemote()
+ {
+ return this.remote;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void setEjbLink(String ejbLink)
+ {
+ this.ejbLink = ejbLink;
+
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void setEjbRefName(String ejbRefName)
+ {
+ this.ejbRefName = ejbRefName;
+
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void setEjbRefType(EjbRefType ejbRefType)
+ {
+ this.ejbRefType = ejbRefType;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void setHome(String home)
+ {
+ this.home = home;
+
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void setInjectionTargets(List<InjectionTargetMetaData> injectionTargets)
+ {
+ this.injectionTargets = injectionTargets;
+
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void setMappedName(String mappedName)
+ {
+ this.mappedName = mappedName;
+
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void setRemote(String remote)
+ {
+ this.remote = remote;
+
+ }
+
+}
Added: projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/EnterpriseBeanMetadataImpl.java
===================================================================
--- projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/EnterpriseBeanMetadataImpl.java (rev 0)
+++ projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/EnterpriseBeanMetadataImpl.java 2009-10-05 12:34:15 UTC (rev 94363)
@@ -0,0 +1,545 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt 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.ejb3.metadata.impl.javaee;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.jboss.ejb3.metadata.spi.javaee.DescriptionMetaData;
+import org.jboss.ejb3.metadata.spi.javaee.DisplayNameMetaData;
+import org.jboss.ejb3.metadata.spi.javaee.EjbLocalRefMetaData;
+import org.jboss.ejb3.metadata.spi.javaee.EjbRefMetaData;
+import org.jboss.ejb3.metadata.spi.javaee.EnterpriseBeanMetaData;
+import org.jboss.ejb3.metadata.spi.javaee.EnvEntryMetaData;
+import org.jboss.ejb3.metadata.spi.javaee.IconType;
+import org.jboss.ejb3.metadata.spi.javaee.LifecycleCallbackMetaData;
+import org.jboss.ejb3.metadata.spi.javaee.PersistenceContextRefMetaData;
+import org.jboss.ejb3.metadata.spi.javaee.PersistenceUnitRefMetaData;
+import org.jboss.ejb3.metadata.spi.javaee.ResourceEnvRefMetaData;
+import org.jboss.ejb3.metadata.spi.javaee.ResourceRefMetaData;
+import org.jboss.ejb3.metadata.spi.javaee.SecurityIdentityMetaData;
+import org.jboss.ejb3.metadata.spi.javaee.ServiceRefMetaData;
+import org.jboss.metadata.javaee.spec.EJBLocalReferenceMetaData;
+import org.jboss.metadata.javaee.spec.EJBLocalReferencesMetaData;
+import org.jboss.metadata.javaee.spec.EJBReferenceMetaData;
+import org.jboss.metadata.javaee.spec.EJBReferencesMetaData;
+import org.jboss.metadata.javaee.spec.EnvironmentEntriesMetaData;
+import org.jboss.metadata.javaee.spec.EnvironmentEntryMetaData;
+import org.jboss.metadata.javaee.spec.LifecycleCallbacksMetaData;
+import org.jboss.metadata.javaee.spec.PersistenceContextReferenceMetaData;
+import org.jboss.metadata.javaee.spec.PersistenceContextReferencesMetaData;
+import org.jboss.metadata.javaee.spec.PersistenceUnitReferenceMetaData;
+import org.jboss.metadata.javaee.spec.PersistenceUnitReferencesMetaData;
+import org.jboss.metadata.javaee.spec.ResourceEnvironmentReferenceMetaData;
+import org.jboss.metadata.javaee.spec.ResourceEnvironmentReferencesMetaData;
+import org.jboss.metadata.javaee.spec.ResourceReferenceMetaData;
+import org.jboss.metadata.javaee.spec.ResourceReferencesMetaData;
+import org.jboss.metadata.javaee.spec.ServiceReferenceMetaData;
+import org.jboss.metadata.javaee.spec.ServiceReferencesMetaData;
+
+/**
+ * EnterpriseBeanMetadataImpl
+ *
+ * Represents the metadata for an enterprise bean
+ *
+ * @see EnterpriseBeanMetaData
+ *
+ * @author Jaikiran Pai
+ * @version $Revision: $
+ */
+public class EnterpriseBeanMetadataImpl extends IdMetadataImpl implements EnterpriseBeanMetaData
+{
+ /**
+ * Delegate from which this {@link EnterpriseBeanMetadataImpl} was
+ * constructed
+ */
+ private org.jboss.metadata.ejb.spec.EnterpriseBeanMetaData delegate;
+
+ /**
+ * Fully qualified ejb classname
+ */
+ private String ejbClass;
+
+ /**
+ * ejb-local-refs of this bean
+ */
+ private List<EjbLocalRefMetaData> ejbLocalRefs;
+
+ /**
+ * EJB name
+ */
+ private String ejbName;
+
+ /**
+ * ejb-refs of this bean
+ */
+ private List<EjbRefMetaData> ejbRefs;
+
+ /**
+ * env-entries of this bean
+ */
+ private List<EnvEntryMetaData> envEntries;
+
+ /**
+ * mapped name
+ */
+ private String mappedName;
+
+ /**
+ * persistence-context-refs of this bean
+ */
+ private List<PersistenceContextRefMetaData> persistenceContextRefs;
+
+ /**
+ * persistence-unit-refs of this bean
+ */
+ private List<PersistenceUnitRefMetaData> persistenceUnitRefs;
+
+ /**
+ * Postconstructs of this bean
+ */
+ private List<LifecycleCallbackMetaData> postConstructs;
+
+ /**
+ * PreDestroys of this bean
+ */
+ private List<LifecycleCallbackMetaData> preDestroys;
+
+ /**
+ * resource-env-refs of this bean
+ */
+ private List<ResourceEnvRefMetaData> resourceEnvRefs;
+
+ /**
+ * resource-refs of this bean
+ */
+ private List<ResourceRefMetaData> resourceRefs;
+
+ /**
+ * Security identity
+ */
+ private SecurityIdentityMetaData securityIdentity;
+
+ /**
+ * service-refs of this bean
+ */
+ private List<ServiceRefMetaData> serviceRefs;
+
+ /**
+ * Constructs a {@link EnterpriseBeanMetadataImpl} out of a
+ * {@link org.jboss.metadata.ejb.spec.EnterpriseBeanMetaData}
+ *
+ * @param enterpriseBean
+ */
+ public EnterpriseBeanMetadataImpl(org.jboss.metadata.ejb.spec.EnterpriseBeanMetaData enterpriseBean)
+ {
+ super(enterpriseBean.getId());
+ this.initialize(enterpriseBean);
+ }
+
+ /**
+ * Initializes the state of this {@link EnterpriseBeanMetadataImpl} from
+ * the {@link org.jboss.metadata.ejb.spec.EnterpriseBeanMetaData}
+ *
+ * @param enterpriseBean
+ */
+ private void initialize(org.jboss.metadata.ejb.spec.EnterpriseBeanMetaData enterpriseBean)
+ {
+ // set the delegate
+ this.delegate = enterpriseBean;
+
+ this.ejbClass = this.delegate.getEjbClass();
+ this.ejbName = this.delegate.getEjbName();
+ this.mappedName = this.delegate.getMappedName();
+
+ // initialize security identity
+ org.jboss.metadata.ejb.spec.SecurityIdentityMetaData delegateSecurityIdentity = this.delegate
+ .getSecurityIdentity();
+ this.securityIdentity = delegateSecurityIdentity == null ? null : new SecurityIdentityMetadataImpl(
+ delegateSecurityIdentity);
+
+ // initialize ejb local refs
+ EJBLocalReferencesMetaData localRefs = this.delegate.getEjbLocalReferences();
+ if (localRefs != null)
+ {
+ this.ejbLocalRefs = new ArrayList<EjbLocalRefMetaData>(localRefs.size());
+ for (EJBLocalReferenceMetaData localRef : localRefs)
+ {
+ this.ejbLocalRefs.add(new EjbLocalRefMetadataImpl(localRef));
+ }
+ }
+
+ // initialize ejb refs
+ EJBReferencesMetaData refs = this.delegate.getEjbReferences();
+ if (refs != null)
+ {
+ this.ejbRefs = new ArrayList<EjbRefMetaData>(refs.size());
+ for (EJBReferenceMetaData ref : refs)
+ {
+ this.ejbRefs.add(new EjbRefMetadataImpl(ref));
+ }
+ }
+
+ // initialize evn entries
+ EnvironmentEntriesMetaData envEntriesMD = this.delegate.getEnvironmentEntries();
+ if (envEntriesMD != null)
+ {
+ this.envEntries = new ArrayList<EnvEntryMetaData>(envEntriesMD.size());
+ for (EnvironmentEntryMetaData envEntryMD : envEntriesMD)
+ {
+ this.envEntries.add(new EnvEntryMetadataImpl(envEntryMD));
+ }
+ }
+
+ // persistence context refs
+ PersistenceContextReferencesMetaData persistenceCtxRefs = this.delegate.getPersistenceContextRefs();
+ if (persistenceCtxRefs != null)
+ {
+ this.persistenceContextRefs = new ArrayList<PersistenceContextRefMetaData>(persistenceCtxRefs.size());
+ for (PersistenceContextReferenceMetaData persistenceCtxRef : persistenceCtxRefs)
+ {
+ this.persistenceContextRefs.add(new PersistenceContextRefMetadataImpl(persistenceCtxRef));
+ }
+ }
+
+ // persistence unit refs
+ PersistenceUnitReferencesMetaData pUnitRefs = this.delegate.getPersistenceUnitRefs();
+ if (pUnitRefs != null)
+ {
+ this.persistenceUnitRefs = new ArrayList<PersistenceUnitRefMetaData>(pUnitRefs.size());
+ for (PersistenceUnitReferenceMetaData pUnitRef : pUnitRefs)
+ {
+ this.persistenceUnitRefs.add(new PersistenceUnitRefMetadataImpl(pUnitRef));
+ }
+ }
+
+ // post constructs
+ LifecycleCallbacksMetaData postConstructCallbacks = this.delegate.getPostConstructs();
+ if (postConstructCallbacks != null)
+ {
+ this.postConstructs = new ArrayList<LifecycleCallbackMetaData>(postConstructCallbacks.size());
+ for (org.jboss.metadata.javaee.spec.LifecycleCallbackMetaData callback : postConstructCallbacks)
+ {
+ this.postConstructs.add(new LifecycleCallbackMetadataImpl(callback));
+ }
+ }
+
+ // pre destroys
+ LifecycleCallbacksMetaData preDestroyCallbacks = this.delegate.getPreDestroys();
+ if (preDestroyCallbacks != null)
+ {
+ this.preDestroys = new ArrayList<LifecycleCallbackMetaData>(preDestroyCallbacks.size());
+ for (org.jboss.metadata.javaee.spec.LifecycleCallbackMetaData callback : preDestroyCallbacks)
+ {
+ this.preDestroys.add(new LifecycleCallbackMetadataImpl(callback));
+ }
+ }
+
+ // resource env refs
+ ResourceEnvironmentReferencesMetaData resEnvRefsMD = this.delegate.getResourceEnvironmentReferences();
+ if (resEnvRefsMD != null)
+ {
+ this.resourceEnvRefs = new ArrayList<ResourceEnvRefMetaData>(resEnvRefsMD.size());
+ for (ResourceEnvironmentReferenceMetaData resEnvRef : resEnvRefsMD)
+ {
+ this.resourceEnvRefs.add(new ResourceEnvRefMetadataImpl(resEnvRef));
+ }
+ }
+
+ // resource refs
+ ResourceReferencesMetaData resRefsMD = this.delegate.getResourceReferences();
+ if (resRefsMD != null)
+ {
+ this.resourceRefs = new ArrayList<ResourceRefMetaData>(resRefsMD.size());
+ for (ResourceReferenceMetaData resRef : resRefsMD)
+ {
+ this.resourceRefs.add(new ResourceRefMetadataImpl(resRef));
+ }
+ }
+
+ // service refs
+ ServiceReferencesMetaData serviceRefsMD = this.delegate.getServiceReferences();
+ if (serviceRefsMD != null)
+ {
+ this.serviceRefs = new ArrayList<ServiceRefMetaData>(serviceRefsMD.size());
+ for (ServiceReferenceMetaData serviceRef : serviceRefsMD)
+ {
+ this.serviceRefs.add(new ServiceRefMetadataImpl(serviceRef));
+ }
+ }
+ }
+
+ public List<DescriptionMetaData> getDescription()
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public List<DisplayNameMetaData> getDisplayName()
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public String getEjbClass()
+ {
+ return this.ejbClass;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public List<EjbLocalRefMetaData> getEjbLocalRefs()
+ {
+ return this.ejbLocalRefs;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public String getEjbName()
+ {
+ return this.ejbName;
+
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public List<EjbRefMetaData> getEjbRefs()
+ {
+ return this.ejbRefs;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public List<EnvEntryMetaData> getEnvEntries()
+ {
+ return this.envEntries;
+ }
+
+ public List<IconType> getIcon()
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public String getMappedName()
+ {
+ return this.mappedName;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public List<PersistenceContextRefMetaData> getPersistenceContextRefs()
+ {
+ return this.persistenceContextRefs;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public List<PersistenceUnitRefMetaData> getPersistenceUnitRefs()
+ {
+ return this.persistenceUnitRefs;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public List<LifecycleCallbackMetaData> getPostConstructs()
+ {
+ return this.postConstructs;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public List<LifecycleCallbackMetaData> getPreDestroys()
+ {
+ return this.preDestroys;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public List<ResourceEnvRefMetaData> getResourceEnvRefs()
+ {
+ return this.resourceEnvRefs;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public List<ResourceRefMetaData> getResourceRefs()
+ {
+ return this.resourceRefs;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public SecurityIdentityMetaData getSecurityIdentity()
+ {
+ return this.securityIdentity;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public List<ServiceRefMetaData> getServiceRefs()
+ {
+ return this.serviceRefs;
+ }
+
+ /**
+ * {@inheritDoc}
+ * @throws IllegalArgumentException If <code>beanClass</code> is null
+ */
+ public void setEjbClass(String beanClass)
+ {
+ if (beanClass == null)
+ {
+ throw new IllegalArgumentException("ejb-class cannot be set to null in " + EnterpriseBeanMetadataImpl.class);
+ }
+ this.ejbClass = beanClass;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void setEjbLocalRefs(List<EjbLocalRefMetaData> ejbLocalRefs)
+ {
+ this.ejbLocalRefs = ejbLocalRefs;
+
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void setEjbName(String name)
+ {
+ if (name == null)
+ {
+ throw new IllegalArgumentException("ejb-name cannot be set to null in " + EnterpriseBeanMetadataImpl.class);
+ }
+ this.ejbName = name;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void setEjbRefs(List<EjbRefMetaData> ejbRefs)
+ {
+ this.ejbRefs = ejbRefs;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void setEnvEntries(List<EnvEntryMetaData> envEntries)
+ {
+ this.envEntries = envEntries;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void setMappedName(String mappedName)
+ {
+ this.mappedName = mappedName;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void setPeristenceContextRefs(List<PersistenceContextRefMetaData> persistenceContextRefs)
+ {
+ this.persistenceContextRefs = persistenceContextRefs;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void setPersistenceUnitRefs(List<PersistenceUnitRefMetaData> persistenceUnitRefs)
+ {
+ this.persistenceUnitRefs = persistenceUnitRefs;
+
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void setPostConstructs(List<LifecycleCallbackMetaData> postConstructs)
+ {
+ this.postConstructs = postConstructs;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void setPreDestroys(List<LifecycleCallbackMetaData> preDestroys)
+ {
+ this.preDestroys = preDestroys;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void setResourceEnvRefs(List<ResourceEnvRefMetaData> resourceEnvRefs)
+ {
+ this.resourceEnvRefs = resourceEnvRefs;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void setResourceRefs(List<ResourceRefMetaData> resourceRefs)
+ {
+ this.resourceRefs = resourceRefs;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void setSecurityIdentity(SecurityIdentityMetaData securityIdentity)
+ {
+ this.securityIdentity = securityIdentity;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void setServiceRefs(List<ServiceRefMetaData> serviceRefs)
+ {
+ this.serviceRefs = serviceRefs;
+ }
+
+}
Added: projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/EnvEntryMetadataImpl.java
===================================================================
--- projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/EnvEntryMetadataImpl.java (rev 0)
+++ projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/EnvEntryMetadataImpl.java 2009-10-05 12:34:15 UTC (rev 94363)
@@ -0,0 +1,205 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt 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.ejb3.metadata.impl.javaee;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Set;
+
+import org.jboss.ejb3.metadata.spi.javaee.DescriptionMetaData;
+import org.jboss.ejb3.metadata.spi.javaee.EnvEntryMetaData;
+import org.jboss.ejb3.metadata.spi.javaee.InjectionTargetMetaData;
+import org.jboss.metadata.javaee.spec.EnvironmentEntryMetaData;
+import org.jboss.metadata.javaee.spec.ResourceInjectionTargetMetaData;
+
+/**
+ * EnvEntryMetadataImpl
+ *
+ * Represents the metadata for an env-entry
+ *
+ * @author Jaikiran Pai
+ * @version $Revision: $
+ */
+public class EnvEntryMetadataImpl extends IdMetadataImpl implements EnvEntryMetaData
+{
+
+ /**
+ * {@link EnvironmentEntryMetaData} from which this {@link EnvEntryMetadataImpl}
+ * was constructed
+ */
+ private EnvironmentEntryMetaData delegate;
+
+ /**
+ * The env-entry-name
+ */
+ private String envEntryName;
+
+ /**
+ * env-entry-type which is a fully qualified classname
+ */
+ private String envEntryType;
+
+ /**
+ * env-entry-value
+ */
+ private String envEtnryValue;
+
+ /**
+ * Injection targets of this env-entry
+ */
+ private List<InjectionTargetMetaData> injectionTargets;
+
+ /**
+ * mapped-name
+ */
+ private String mappedName;
+
+ /**
+ * Constructs an {@link EnvEntryMetadataImpl} from an {@link EnvironmentEntryMetaData}
+ *
+ * @param envEntry
+ */
+ public EnvEntryMetadataImpl(EnvironmentEntryMetaData envEntry)
+ {
+ super(envEntry.getId());
+ initialize(envEntry);
+ }
+
+ /**
+ * Initializes this {@link EnvEntryMetadataImpl} from the state available in
+ * the <code>envEntry</code>
+ *
+ * @param envEntry
+ */
+ private void initialize(EnvironmentEntryMetaData envEntry)
+ {
+ // set the delegate
+ this.delegate = envEntry;
+
+ this.envEntryName = this.delegate.getEnvEntryName();
+ this.envEntryType = this.delegate.getType();
+ this.envEtnryValue = this.delegate.getValue();
+ this.mappedName = this.delegate.getMappedName();
+
+ // injection targets
+ Set<ResourceInjectionTargetMetaData> injectionTargetsMD = this.delegate.getInjectionTargets();
+ if (injectionTargetsMD != null)
+ {
+ this.injectionTargets = new ArrayList<InjectionTargetMetaData>(injectionTargetsMD.size());
+ for (ResourceInjectionTargetMetaData injectionTarget : injectionTargetsMD)
+ {
+ this.injectionTargets.add(new InjectionTargetMetadataImpl(injectionTarget));
+ }
+ }
+
+ }
+
+ public List<DescriptionMetaData> getDescription()
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ */
+ public String getEnvEntryName()
+ {
+ return this.envEntryName;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public String getEnvEntryType()
+ {
+ return this.envEntryType;
+ }
+
+ /**
+ * @see EnvEntryMetaData#getEnvEntryValue()
+ */
+ public String getEnvEntryValue()
+ {
+ return this.envEtnryValue;
+ }
+
+ /**
+ * @see EnvEntryMetaData#getInjectionTargets()
+ */
+ public List<InjectionTargetMetaData> getInjectionTargets()
+ {
+ return this.injectionTargets;
+ }
+
+ /**
+ * @see EnvEntryMetaData#getMappedName()
+ */
+ public String getMappedName()
+ {
+ return this.mappedName;
+ }
+
+ /**
+ * @see EnvEntryMetaData#setEnvEntryName(String)
+ */
+ public void setEnvEntryName(String name)
+ {
+ this.envEntryName = name;
+
+ }
+
+ /**
+ * @see EnvEntryMetaData#setEnvEntryType(String)
+ */
+ public void setEnvEntryType(String envEntryType)
+ {
+ this.envEntryType = envEntryType;
+ }
+
+ /**
+ * @see org.jboss.ejb3.metadata.spi.javaee.EnvEntryMetaData#setEnvEntryValue(java.lang.String)
+ */
+ public void setEnvEntryValue(String value)
+ {
+ this.envEtnryValue = value;
+
+ }
+
+ /**
+ * @see EnvEntryMetaData#setInjectionTargets(List)
+ */
+ public void setInjectionTargets(List<InjectionTargetMetaData> injectionTargets)
+ {
+ this.injectionTargets = injectionTargets;
+ }
+
+ /**
+ * @see EnvEntryMetaData#setMappedName(String)
+ */
+ public void setMappedName(String mappedName)
+ {
+ this.mappedName = mappedName;
+ }
+
+}
Added: projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/IdMetadataImpl.java
===================================================================
--- projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/IdMetadataImpl.java (rev 0)
+++ projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/IdMetadataImpl.java 2009-10-05 12:34:15 UTC (rev 94363)
@@ -0,0 +1,52 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt 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.ejb3.metadata.impl.javaee;
+
+import org.jboss.ejb3.metadata.spi.javaee.IdMetaData;
+
+/**
+ * IdMetadataImpl
+ *
+ * @author Jaikiran Pai
+ * @version $Revision: $
+ */
+public class IdMetadataImpl implements IdMetaData
+{
+
+ protected String id;
+
+ public IdMetadataImpl(String id)
+ {
+ this.id = id;
+ }
+
+ public String getId()
+ {
+ return this.id;
+ }
+
+ public void setId(String id)
+ {
+ this.id = id;
+ }
+
+}
Added: projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/InitMethodMetadataImpl.java
===================================================================
--- projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/InitMethodMetadataImpl.java (rev 0)
+++ projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/InitMethodMetadataImpl.java 2009-10-05 12:34:15 UTC (rev 94363)
@@ -0,0 +1,114 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt 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.ejb3.metadata.impl.javaee;
+
+import org.jboss.ejb3.metadata.spi.javaee.InitMethodMetaData;
+import org.jboss.ejb3.metadata.spi.javaee.NamedMethodMetaData;
+
+/**
+ * InitMethodMetadataImpl
+ *
+ * Represents the metadata for init-method
+ *
+ * @author Jaikiran Pai
+ * @version $Revision: $
+ */
+public class InitMethodMetadataImpl extends IdMetadataImpl implements InitMethodMetaData
+{
+
+ /**
+ * Delegate from which this {@link InitMethodMetadataImpl} was constructed
+ */
+ private org.jboss.metadata.ejb.spec.InitMethodMetaData delegate;
+
+ /**
+ * bean-method
+ */
+ private NamedMethodMetaData beanMethod;
+
+ /**
+ * create-method
+ */
+ private NamedMethodMetaData createMethod;
+
+ /**
+ * Constructs a {@link InitMethodMetadataImpl} out of a {@link org.jboss.metadata.ejb.spec.InitMethodMetaData}
+ *
+ * @param initMethod
+ */
+ public InitMethodMetadataImpl(org.jboss.metadata.ejb.spec.InitMethodMetaData initMethod)
+ {
+ super(initMethod.getId());
+ initialize(initMethod);
+ }
+
+ /**
+ * Initializes this {@link InitMethodMetadataImpl} from the state available in
+ * the <code>initMethod</code>
+ *
+ * @param initMethod
+ */
+ private void initialize(org.jboss.metadata.ejb.spec.InitMethodMetaData initMethod)
+ {
+ // set the delegate
+ this.delegate = initMethod;
+
+ org.jboss.metadata.ejb.spec.NamedMethodMetaData delegateBeanMethod = this.delegate.getBeanMethod();
+ this.beanMethod = delegateBeanMethod == null ? null : new NamedMethodMetadataImpl(delegateBeanMethod);
+
+ org.jboss.metadata.ejb.spec.NamedMethodMetaData delegateCreateMethod = this.delegate.getCreateMethod();
+ this.createMethod = delegateCreateMethod == null ? null : new NamedMethodMetadataImpl(delegateCreateMethod);
+ }
+
+ /**
+ * @see InitMethodMetaData#getBeanMethod()
+ */
+ public NamedMethodMetaData getBeanMethod()
+ {
+ return this.beanMethod;
+ }
+
+ /**
+ * @see InitMethodMetaData#getCreateMethod()
+ */
+ public NamedMethodMetaData getCreateMethod()
+ {
+ return this.createMethod;
+ }
+
+ /**
+ * @see InitMethodMetaData#setBeanMethod(NamedMethodMetaData)
+ */
+ public void setBeanMethod(NamedMethodMetaData beanMethod)
+ {
+ this.beanMethod = beanMethod;
+ }
+
+ /**
+ * @see InitMethodMetaData#setCreateMethod(NamedMethodMetaData)
+ */
+ public void setCreateMethod(NamedMethodMetaData createMethod)
+ {
+ this.createMethod = createMethod;
+ }
+
+}
Added: projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/InjectionTargetMetadataImpl.java
===================================================================
--- projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/InjectionTargetMetadataImpl.java (rev 0)
+++ projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/InjectionTargetMetadataImpl.java 2009-10-05 12:34:15 UTC (rev 94363)
@@ -0,0 +1,111 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt 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.ejb3.metadata.impl.javaee;
+
+import org.jboss.ejb3.metadata.spi.javaee.InjectionTargetMetaData;
+import org.jboss.metadata.javaee.spec.ResourceInjectionTargetMetaData;
+
+/**
+ * InjectionTargetMetadataImpl
+ *
+ * Represents the metadata for an injection-target
+ *
+ * @see InjectionTargetMetaData
+ *
+ * @author Jaikiran Pai
+ * @version $Revision: $
+ */
+public class InjectionTargetMetadataImpl implements InjectionTargetMetaData
+{
+
+ /**
+ * Delegate from which this {@link InjectionTargetMetadataImpl} was constructed
+ */
+ private ResourceInjectionTargetMetaData delegate;
+
+ /**
+ * Fully qualified classname of the injection-target
+ */
+ private String injectionTargetClassname;
+
+ /**
+ * Name of the injection-target
+ */
+ private String injectionTargetName;
+
+ /**
+ * Constructs an {@link InjectionTargetMetadataImpl} from a {@link ResourceInjectionTargetMetaData}
+ *
+ * @param injectionTarget
+ */
+ public InjectionTargetMetadataImpl(ResourceInjectionTargetMetaData injectionTarget)
+ {
+ this.initialize(injectionTarget);
+ }
+
+ /**
+ * Initializes this {@link InjectionTargetMetadataImpl} from the state in {@link ResourceInjectionTargetMetaData}
+ *
+ * @param injectionTarget
+ */
+ private void initialize(ResourceInjectionTargetMetaData injectionTarget)
+ {
+ //set the delegate
+ this.delegate = injectionTarget;
+
+ this.injectionTargetClassname = this.delegate.getInjectionTargetClass();
+ this.injectionTargetName = this.delegate.getInjectionTargetName();
+ }
+
+ /**
+ * @see InjectionTargetMetaData#getInjectionTargetClassname()
+ */
+ public String getInjectionTargetClassname()
+ {
+ return this.injectionTargetClassname;
+ }
+
+ /**
+ * @see InjectionTargetMetaData#getInjectionTargetName()
+ */
+ public String getInjectionTargetName()
+ {
+ return this.injectionTargetName;
+ }
+
+ /**
+ * @see InjectionTargetMetaData#setInjectionTargetClassname(String)
+ */
+ public void setInjectionTargetClassname(String classname)
+ {
+ this.injectionTargetClassname = classname;
+ }
+
+ /**
+ * @see InjectionTargetMetaData#setInjectionTargetName(String)
+ */
+ public void setInjectionTargetName(String targetName)
+ {
+ this.injectionTargetName = targetName;
+ }
+
+}
Added: projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/LifecycleCallbackMetadataImpl.java
===================================================================
--- projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/LifecycleCallbackMetadataImpl.java (rev 0)
+++ projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/LifecycleCallbackMetadataImpl.java 2009-10-05 12:34:15 UTC (rev 94363)
@@ -0,0 +1,106 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt 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.ejb3.metadata.impl.javaee;
+
+import org.jboss.ejb3.metadata.spi.javaee.LifecycleCallbackMetaData;
+
+/**
+ * LifecycleCallbackMetadataImpl
+ *
+ * Represents the metadata for lifecycle-callback
+ *
+ * @author Jaikiran Pai
+ * @version $Revision: $
+ */
+public class LifecycleCallbackMetadataImpl implements LifecycleCallbackMetaData
+{
+
+ /**
+ * Delegate from which this {@link LifecycleCallbackMetadataImpl} instance
+ * was constructed
+ */
+ private org.jboss.metadata.javaee.spec.LifecycleCallbackMetaData delegate;
+
+ /**
+ * Fully qualified name of the lifecycle callback class
+ */
+ private String lifecycleCallbackClassname;
+
+ /**
+ * Name of the lifecycle callback method
+ */
+ private String lifecycleCallbackMethodName;
+
+ /**
+ * Constructs a {@link LifecycleCallbackMetadataImpl} from the {@link org.jboss.metadata.javaee.spec.LifecycleCallbackMetaData}
+ * instance
+ *
+ * @param lifecycleCallback
+ */
+ public LifecycleCallbackMetadataImpl(org.jboss.metadata.javaee.spec.LifecycleCallbackMetaData lifecycleCallback)
+ {
+ this.initialize(lifecycleCallback);
+ }
+
+ private void initialize(org.jboss.metadata.javaee.spec.LifecycleCallbackMetaData lifecycleCallback)
+ {
+ // set the delegate
+ this.delegate = lifecycleCallback;
+
+ this.lifecycleCallbackClassname = this.delegate.getClassName();
+ this.lifecycleCallbackMethodName = this.delegate.getMethodName();
+
+ }
+
+ /**
+ * @see LifecycleCallbackMetaData#getLifecycleCallbackClass()
+ */
+ public String getLifecycleCallbackClass()
+ {
+ return this.lifecycleCallbackClassname;
+ }
+
+ /**
+ * @see LifecycleCallbackMetaData#getLifecycleCallbackMethod()
+ */
+ public String getLifecycleCallbackMethod()
+ {
+ return this.lifecycleCallbackMethodName;
+ }
+
+ /**
+ * @see LifecycleCallbackMetaData#setLifecycleCallbackClass(String)
+ */
+ public void setLifecycleCallbackClass(String lifecycleCallbackClass)
+ {
+ this.lifecycleCallbackClassname = lifecycleCallbackClass;
+ }
+
+ /**
+ * @see LifecycleCallbackMetaData#setLifecycleCallbackMethod(String)
+ */
+ public void setLifecycleCallbackMethod(String methodName)
+ {
+ this.lifecycleCallbackMethodName = methodName;
+ }
+
+}
Added: projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/MethodParamsMetadataImpl.java
===================================================================
--- projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/MethodParamsMetadataImpl.java (rev 0)
+++ projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/MethodParamsMetadataImpl.java 2009-10-05 12:34:15 UTC (rev 94363)
@@ -0,0 +1,114 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt 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.ejb3.metadata.impl.javaee;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.jboss.ejb3.metadata.spi.javaee.MethodParamsMetaData;
+import org.jboss.metadata.ejb.spec.MethodParametersMetaData;
+
+/**
+ * MethodParamsMetadataImpl
+ *
+ * Represents the metadata for method-params
+ *
+ * @author Jaikiran Pai
+ * @version $Revision: $
+ */
+public class MethodParamsMetadataImpl implements MethodParamsMetaData
+{
+
+ /**
+ * Delegate from which this {@link MethodParamsMetadataImpl} was constructed
+ */
+ private MethodParametersMetaData delegate;
+
+ /**
+ * Id
+ */
+ private String id;
+
+ /**
+ * method-params
+ */
+ private List<String> methodParams;
+
+ /**
+ * Constructs a {@link MethodParamsMetadataImpl} out of a {@link MethodParametersMetaData}
+ *
+ * @param methodParams
+ */
+ public MethodParamsMetadataImpl(MethodParametersMetaData methodParams)
+ {
+ this.initialize(methodParams);
+ }
+
+ /**
+ * Initializes this {@link MethodParamsMetadataImpl} from the state present in
+ * <code>methodParams</code>
+ *
+ * @param methodParams
+ */
+ public void initialize(MethodParametersMetaData methodParams)
+ {
+ // set the delegate
+ this.delegate = methodParams;
+
+ // delegate itself is a List<String>
+ this.methodParams = new ArrayList<String>(this.delegate);
+ }
+
+ /**
+ * @see MethodParamsMetaData#getMethodParams()
+ */
+ public List<String> getMethodParams()
+ {
+ return this.methodParams;
+ }
+
+ /**
+ * @see MethodParamsMetaData#setMethodParams(List)
+ */
+ public void setMethodParams(List<String> methodParams)
+ {
+ this.methodParams = methodParams;
+
+ }
+
+ /**
+ * @see MethodParamsMetaData#getId()
+ */
+ public String getId()
+ {
+ return this.id;
+ }
+
+ /**
+ * @see MethodParamsMetaData#setId(String)
+ */
+ public void setId(String id)
+ {
+ this.id = id;
+ }
+
+}
Added: projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/NamedMethodMetadataImpl.java
===================================================================
--- projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/NamedMethodMetadataImpl.java (rev 0)
+++ projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/NamedMethodMetadataImpl.java 2009-10-05 12:34:15 UTC (rev 94363)
@@ -0,0 +1,117 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt 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.ejb3.metadata.impl.javaee;
+
+import org.jboss.ejb3.metadata.spi.javaee.MethodParamsMetaData;
+import org.jboss.ejb3.metadata.spi.javaee.NamedMethodMetaData;
+import org.jboss.metadata.ejb.spec.MethodParametersMetaData;
+
+/**
+ * NamedMethodMetadataImpl
+ *
+ * Represents the metadata for a named-method
+ *
+ * @author Jaikiran Pai
+ * @version $Revision: $
+ */
+public class NamedMethodMetadataImpl extends IdMetadataImpl implements NamedMethodMetaData
+{
+ /**
+ * {@link org.jboss.metadata.ejb.spec.NamedMethodMetaData} from which
+ * this {@link NamedMethodMetadataImpl} was constructed
+ */
+ private org.jboss.metadata.ejb.spec.NamedMethodMetaData delegate;
+
+ /**
+ * Name of the method
+ */
+ private String methodName;
+
+ /**
+ * Method parameters
+ */
+ private MethodParamsMetaData methodParams;
+
+ /**
+ * Constructs a {@link NamedMethodMetadataImpl} from the {@link org.jboss.metadata.ejb.spec.NamedMethodMetaData}
+ *
+ * @param namedMethod
+ */
+ public NamedMethodMetadataImpl(org.jboss.metadata.ejb.spec.NamedMethodMetaData namedMethod)
+ {
+ super(namedMethod.getId());
+ initialize(namedMethod);
+ }
+
+ /**
+ * Initializes this {@link NamedMethodMetadataImpl} from the state present in the
+ * <code>namedMethod</code>
+ *
+ * @param namedMethod
+ */
+ protected void initialize(org.jboss.metadata.ejb.spec.NamedMethodMetaData namedMethod)
+ {
+ // set the delegate
+ this.delegate = namedMethod;
+
+ this.methodName = this.delegate.getMethodName();
+
+ // method params
+ MethodParametersMetaData delegateMethodParams = this.delegate.getMethodParams();
+ this.methodParams = delegateMethodParams == null ? null : new MethodParamsMetadataImpl(delegateMethodParams);
+ }
+
+ /**
+ * @see NamedMethodMetaData#getMethodName()
+ */
+ public String getMethodName()
+ {
+ return this.methodName;
+ }
+
+ /**
+ * @see NamedMethodMetaData#getMethodParams()
+ */
+ public MethodParamsMetaData getMethodParams()
+ {
+ return this.methodParams;
+ }
+
+ /**
+ * @see NamedMethodMetaData#setMethodName(String)
+ */
+ public void setMethodName(String methodName)
+ {
+ this.methodName = methodName;
+
+ }
+
+ /**
+ * @see NamedMethodMetaData#setMethodParams(MethodParamsMetaData)
+ */
+ public void setMethodParams(MethodParamsMetaData methodParams)
+ {
+ this.methodParams = methodParams;
+
+ }
+
+}
Added: projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/PersistenceContextRefMetadataImpl.java
===================================================================
--- projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/PersistenceContextRefMetadataImpl.java (rev 0)
+++ projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/PersistenceContextRefMetadataImpl.java 2009-10-05 12:34:15 UTC (rev 94363)
@@ -0,0 +1,239 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt 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.ejb3.metadata.impl.javaee;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Set;
+
+import javax.persistence.PersistenceContextType;
+
+import org.jboss.ejb3.metadata.spi.javaee.DescriptionMetaData;
+import org.jboss.ejb3.metadata.spi.javaee.InjectionTargetMetaData;
+import org.jboss.ejb3.metadata.spi.javaee.PersistenceContextRefMetaData;
+import org.jboss.ejb3.metadata.spi.javaee.PropertyMetaData;
+import org.jboss.metadata.javaee.spec.PersistenceContextReferenceMetaData;
+import org.jboss.metadata.javaee.spec.PropertiesMetaData;
+import org.jboss.metadata.javaee.spec.ResourceInjectionTargetMetaData;
+
+/**
+ * PersistenceContextRefMetadataImpl
+ *
+ * Represents the metadata for a persistence-context-ref
+ *
+ * @author Jaikiran Pai
+ * @version $Revision: $
+ */
+public class PersistenceContextRefMetadataImpl extends IdMetadataImpl implements PersistenceContextRefMetaData
+{
+
+ /**
+ * The {@link PersistenceContextReferenceMetaData} from which this {@link PersistenceContextRefMetadataImpl}
+ * was constructed
+ */
+ private PersistenceContextReferenceMetaData delegate;
+
+ /**
+ * Injection targets
+ */
+ private List<InjectionTargetMetaData> injectionTargets;
+
+ /**
+ * mapped-name
+ */
+ private String mappedName;
+
+ /**
+ * Name of the persistence-context-ref
+ */
+ private String persistenceContextRefName;
+
+ /**
+ * Type of persistence context
+ */
+ private PersistenceContextType persistenceContextType;
+
+ /**
+ * Properties associated with this persistence-context ref
+ */
+ private List<PropertyMetaData> persistenceProperties;
+
+ /**
+ * Name of the persistence unit
+ */
+ private String persistenceUnitName;
+
+ /**
+ * Constructs a {@link PersistenceContextRefMetadataImpl} from a {@link PersistenceContextReferenceMetaData}
+ *
+ * @param persistenceContextRef
+ */
+ public PersistenceContextRefMetadataImpl(PersistenceContextReferenceMetaData persistenceContextRef)
+ {
+ super(persistenceContextRef.getId());
+ initialize(persistenceContextRef);
+
+ }
+
+ /**
+ * Initializes this {@link PersistenceContextRefMetadataImpl} from the state in <code>persistenceContextRef</code>
+ *
+ * @param persistenceContextRef
+ */
+ private void initialize(PersistenceContextReferenceMetaData persistenceContextRef)
+ {
+ // set the delegate
+ this.delegate = persistenceContextRef;
+
+ this.mappedName = this.delegate.getMappedName();
+ this.persistenceContextRefName = this.delegate.getPersistenceContextRefName();
+ this.persistenceContextType = this.delegate.getPersistenceContextType();
+ this.persistenceUnitName = this.delegate.getPersistenceUnitName();
+
+ // injection targets
+ Set<ResourceInjectionTargetMetaData> injectionTargetsMD = this.delegate.getInjectionTargets();
+ if (injectionTargetsMD != null)
+ {
+ this.injectionTargets = new ArrayList<InjectionTargetMetaData>(injectionTargetsMD.size());
+ for (ResourceInjectionTargetMetaData injectionTarget : injectionTargetsMD)
+ {
+ this.injectionTargets.add(new InjectionTargetMetadataImpl(injectionTarget));
+ }
+ }
+
+ // persistence properties
+ PropertiesMetaData delegatePersistenceProperties = this.delegate.getProperties();
+ if (delegatePersistenceProperties != null)
+ {
+ this.persistenceProperties = new ArrayList<PropertyMetaData>(delegatePersistenceProperties.size());
+ for (org.jboss.metadata.javaee.spec.PropertyMetaData property : delegatePersistenceProperties)
+ {
+ this.persistenceProperties.add(new PropertyMetadataImpl(property));
+ }
+ }
+ }
+
+ public List<DescriptionMetaData> getDescription()
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /**
+ * @see PersistenceContextRefMetaData#getInjectionTargets()
+ */
+ public List<InjectionTargetMetaData> getInjectionTargets()
+ {
+ return this.injectionTargets;
+ }
+
+ /**
+ * @see PersistenceContextRefMetaData#getMappedName()
+ */
+ public String getMappedName()
+ {
+ return this.mappedName;
+ }
+
+ /**
+ * @see PersistenceContextRefMetaData#getPersistenceContextRefName()
+ */
+ public String getPersistenceContextRefName()
+ {
+ return this.persistenceContextRefName;
+ }
+
+ /**
+ * @see PersistenceContextRefMetaData#getPersistenceContextType()
+ */
+ public PersistenceContextType getPersistenceContextType()
+ {
+ return this.persistenceContextType;
+ }
+
+ /**
+ * @see PersistenceContextRefMetaData#getPersistenceProperties()
+ */
+ public List<PropertyMetaData> getPersistenceProperties()
+ {
+ return this.persistenceProperties;
+ }
+
+ /**
+ * @see PersistenceContextRefMetaData#getPersistenceUnitName()
+ */
+ public String getPersistenceUnitName()
+ {
+ return this.persistenceUnitName;
+ }
+
+ /**
+ * @see PersistenceContextRefMetaData#setInjectionTargets(List)
+ */
+ public void setInjectionTargets(List<InjectionTargetMetaData> injectionTargets)
+ {
+ this.injectionTargets = injectionTargets;
+
+ }
+
+ /**
+ * @see PersistenceContextRefMetaData#setMappedName(String)
+ */
+ public void setMappedName(String mappedName)
+ {
+ this.mappedName = mappedName;
+ }
+
+ /**
+ * @see PersistenceContextRefMetaData#setPersistenceContextRefName(String)
+ */
+ public void setPersistenceContextRefName(String persistenceContextRefName)
+ {
+ this.persistenceContextRefName = persistenceContextRefName;
+ }
+
+ /**
+ * @see PersistenceContextRefMetaData#setPersistenceContextType(PersistenceContextType)
+ */
+ public void setPersistenceContextType(PersistenceContextType persistenceContextType)
+ {
+ this.persistenceContextType = persistenceContextType;
+
+ }
+
+ /**
+ * @see PersistenceContextRefMetaData#setPersistenceProperties(List)
+ */
+ public void setPersistenceProperties(List<PropertyMetaData> properties)
+ {
+ this.persistenceProperties = properties;
+ }
+
+ /**
+ * @see PersistenceContextRefMetaData#setPersistenceUnitName(String)
+ */
+ public void setPersistenceUnitName(String value)
+ {
+ this.persistenceUnitName = value;
+ }
+
+}
Added: projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/PersistenceUnitRefMetadataImpl.java
===================================================================
--- projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/PersistenceUnitRefMetadataImpl.java (rev 0)
+++ projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/PersistenceUnitRefMetadataImpl.java 2009-10-05 12:34:15 UTC (rev 94363)
@@ -0,0 +1,180 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt 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.ejb3.metadata.impl.javaee;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Set;
+
+import org.jboss.ejb3.metadata.spi.javaee.DescriptionMetaData;
+import org.jboss.ejb3.metadata.spi.javaee.InjectionTargetMetaData;
+import org.jboss.ejb3.metadata.spi.javaee.PersistenceUnitRefMetaData;
+import org.jboss.metadata.javaee.spec.PersistenceUnitReferenceMetaData;
+import org.jboss.metadata.javaee.spec.ResourceInjectionTargetMetaData;
+
+/**
+ * PersistenceUnitRefMetadataImpl
+ *
+ * Represents the metadata for a persistence-unit-ref
+ *
+ * @author Jaikiran Pai
+ * @version $Revision: $
+ */
+public class PersistenceUnitRefMetadataImpl extends IdMetadataImpl implements PersistenceUnitRefMetaData
+{
+
+ /**
+ * {@link PersistenceUnitReferenceMetaData} from which this {@link PersistenceUnitRefMetadataImpl}
+ * was constructed
+ */
+ private PersistenceUnitReferenceMetaData delegate;
+
+ /**
+ * Injection targets
+ */
+ private List<InjectionTargetMetaData> injectionTargets;
+
+ /**
+ * mapped-name
+ */
+ private String mappedName;
+
+ /**
+ * Name of the persistence unit
+ */
+ private String persistenceUnitName;
+
+ /**
+ * Name of the persistence-unit-ref
+ */
+ private String persistenceUnitRefName;
+
+ /**
+ * Constructs a {@link PersistenceUnitRefMetadataImpl} from a {@link PersistenceUnitReferenceMetaData}
+ *
+ * @param persistenceUnitRef
+ * @throws NullPointerException If the passed <code>persistenceUnitRef</code> is null
+ */
+ public PersistenceUnitRefMetadataImpl(PersistenceUnitReferenceMetaData persistenceUnitRef)
+ {
+ super(persistenceUnitRef.getId());
+ this.initialize(persistenceUnitRef);
+ }
+
+ /**
+ * Initializes this {@link PersistenceUnitRefMetadataImpl} from the state in
+ * <code>persistenceUnitRef</code>
+ *
+ * @param persistenceUnitRef
+ * @throws NullPointerException If the passed <code>persistenceUnitRef</code> is null
+ */
+ private void initialize(PersistenceUnitReferenceMetaData persistenceUnitRef)
+ {
+ // set the delegate
+ this.delegate = persistenceUnitRef;
+ this.mappedName = this.delegate.getMappedName();
+ this.persistenceUnitName = this.delegate.getPersistenceUnitName();
+ this.persistenceUnitRefName = this.delegate.getPersistenceUnitRefName();
+
+ // injection targets
+ Set<ResourceInjectionTargetMetaData> injectionTargetsMD = this.delegate.getInjectionTargets();
+ if (injectionTargetsMD != null)
+ {
+ this.injectionTargets = new ArrayList<InjectionTargetMetaData>(injectionTargetsMD.size());
+ for (ResourceInjectionTargetMetaData injectionTarget : injectionTargetsMD)
+ {
+ this.injectionTargets.add(new InjectionTargetMetadataImpl(injectionTarget));
+ }
+ }
+ }
+
+ public List<DescriptionMetaData> getDescription()
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /**
+ * @see PersistenceUnitRefMetaData#getInjectionTargets()
+ */
+ public List<InjectionTargetMetaData> getInjectionTargets()
+ {
+ return this.injectionTargets;
+ }
+
+ /**
+ * @see PersistenceUnitRefMetaData#getMappedName()
+ */
+ public String getMappedName()
+ {
+ return this.mappedName;
+ }
+
+ /**
+ * @see PersistenceUnitRefMetaData#getPersistenceUnitName()
+ */
+ public String getPersistenceUnitName()
+ {
+ return this.persistenceUnitName;
+ }
+
+ /**
+ * @see PersistenceUnitRefMetaData#getPersistenceUnitRefName()
+ */
+ public String getPersistenceUnitRefName()
+ {
+ return this.persistenceUnitRefName;
+ }
+
+ /**
+ * @see PersistenceUnitRefMetaData#setInjectionTargets(List)
+ */
+ public void setInjectionTargets(List<InjectionTargetMetaData> injectionTargets)
+ {
+ this.injectionTargets = injectionTargets;
+ }
+
+ /**
+ * @see PersistenceUnitRefMetaData#setMappedName(String)
+ */
+ public void setMappedName(String mappedName)
+ {
+ this.mappedName = mappedName;
+ }
+
+ /**
+ * @see PersistenceUnitRefMetaData#setPersistenceUnitName(String)
+ */
+ public void setPersistenceUnitName(String persistenceUnitName)
+ {
+ this.persistenceUnitName = persistenceUnitName;
+ }
+
+ /**
+ * @see PersistenceUnitRefMetaData#setPersistenceUnitRefName(String)
+ */
+ public void setPersistenceUnitRefName(String persistenceUnitRefName)
+ {
+ this.persistenceUnitRefName = persistenceUnitRefName;
+ }
+
+}
Added: projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/PropertyMetadataImpl.java
===================================================================
--- projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/PropertyMetadataImpl.java (rev 0)
+++ projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/PropertyMetadataImpl.java 2009-10-05 12:34:15 UTC (rev 94363)
@@ -0,0 +1,114 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt 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.ejb3.metadata.impl.javaee;
+
+import org.jboss.ejb3.metadata.spi.javaee.PropertyMetaData;
+
+/**
+ * PropertiesMetadataImpl
+ *
+ * Represents the metadata for the <property> element
+ *
+ * @author Jaikiran Pai
+ * @version $Revision: $
+ */
+public class PropertyMetadataImpl extends IdMetadataImpl implements PropertyMetaData
+{
+
+ /**
+ * {@link org.jboss.metadata.javaee.spec.PropertyMetaData} from which this
+ * {@link PropertyMetadataImpl} was constructed
+ */
+ private org.jboss.metadata.javaee.spec.PropertyMetaData delegate;
+
+ /**
+ * Property name
+ */
+ private String name;
+
+ /**
+ * Property value
+ */
+ private String value;
+
+ /**
+ * Constructs a {@link PropertyMetadataImpl} out of a {@link org.jboss.metadata.javaee.spec.PropertyMetaData}
+ *
+ * @param property
+ */
+ public PropertyMetadataImpl(org.jboss.metadata.javaee.spec.PropertyMetaData property)
+ {
+ super(property.getId());
+ this.initialize(property);
+
+ }
+
+ /**
+ * Initializes this {@link PropertyMetadataImpl} from the state in <code>property</code>
+ *
+ * @param property
+ */
+ private void initialize(org.jboss.metadata.javaee.spec.PropertyMetaData property)
+ {
+ // set the delegate
+ this.delegate = property;
+
+ this.name = this.delegate.getName();
+ this.value = this.delegate.getValue();
+
+ }
+
+ /**
+ * @see org.jboss.ejb3.metadata.spi.javaee.PropertyMetaData#getName()
+ */
+ public String getName()
+ {
+ return this.name;
+ }
+
+ /**
+ * @see org.jboss.ejb3.metadata.spi.javaee.PropertyMetaData#getValue()
+ */
+ public String getValue()
+ {
+ return this.value;
+ }
+
+ /**
+ * @see org.jboss.ejb3.metadata.spi.javaee.PropertyMetaData#setName(java.lang.String)
+ */
+ public void setName(String name)
+ {
+ this.name = name;
+
+ }
+
+ /**
+ * @see org.jboss.ejb3.metadata.spi.javaee.PropertyMetaData#setValue(java.lang.String)
+ */
+ public void setValue(String value)
+ {
+ this.value = value;
+
+ }
+
+}
Added: projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/ResourceEnvRefMetadataImpl.java
===================================================================
--- projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/ResourceEnvRefMetadataImpl.java (rev 0)
+++ projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/ResourceEnvRefMetadataImpl.java 2009-10-05 12:34:15 UTC (rev 94363)
@@ -0,0 +1,187 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt 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.ejb3.metadata.impl.javaee;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Set;
+
+import org.jboss.ejb3.metadata.spi.javaee.DescriptionMetaData;
+import org.jboss.ejb3.metadata.spi.javaee.InjectionTargetMetaData;
+import org.jboss.ejb3.metadata.spi.javaee.ResourceEnvRefMetaData;
+import org.jboss.metadata.javaee.spec.ResourceEnvironmentReferenceMetaData;
+import org.jboss.metadata.javaee.spec.ResourceInjectionTargetMetaData;
+
+/**
+ * ResourceEnvRefMetadataImpl
+ *
+ * Represents the metadata for a resource-env-ref
+ *
+ * @author Jaikiran Pai
+ * @version $Revision: $
+ */
+public class ResourceEnvRefMetadataImpl implements ResourceEnvRefMetaData
+{
+ /**
+ * The {@link ResourceEnvironmentReferenceMetaData} from which this {@link ResourceEnvRefMetadataImpl}
+ * was constructed
+ */
+ private ResourceEnvironmentReferenceMetaData delegate;
+
+ /**
+ * Injection targets
+ */
+ private List<InjectionTargetMetaData> injectionTargets;
+
+ /**
+ * mapped-name
+ */
+ private String mappedName;
+
+ /**
+ * Name of the resource-env-ref
+ */
+ private String resEnvRefName;
+
+ /**
+ * Fully qualified classname of the resource-env-ref type
+ */
+ private String resEnvRefType;
+
+ /**
+ * Constructs a {@link ResourceEnvRefMetadataImpl} from a {@link ResourceEnvironmentReferenceMetaData}
+ *
+ * @param resEnvRef
+ * @throws NullPointerException If the passed <code>resEnvRef</code> is null
+ */
+ public ResourceEnvRefMetadataImpl(ResourceEnvironmentReferenceMetaData resEnvRef)
+ {
+ this.initialize(resEnvRef);
+ }
+
+ /**
+ * Initializes this {@link ResourceEnvRefMetadataImpl} from the state in <code>resEnvRef</code>
+ *
+ * @param resEnvRef
+ * @throws NullPointerException If the passed <code>resEnvRef</code> is null
+ */
+ private void initialize(ResourceEnvironmentReferenceMetaData resEnvRef)
+ {
+ // set the delegate
+ this.delegate = resEnvRef;
+
+ this.mappedName = this.delegate.getMappedName();
+ this.resEnvRefName = this.delegate.getResourceEnvRefName();
+ this.resEnvRefType = this.delegate.getType();
+
+ // injection targets
+ Set<ResourceInjectionTargetMetaData> injectionTargetsMD = this.delegate.getInjectionTargets();
+ if (injectionTargetsMD != null)
+ {
+ this.injectionTargets = new ArrayList<InjectionTargetMetaData>(injectionTargetsMD.size());
+ for (ResourceInjectionTargetMetaData injectionTarget : injectionTargetsMD)
+ {
+ this.injectionTargets.add(new InjectionTargetMetadataImpl(injectionTarget));
+ }
+ }
+
+ }
+
+ public List<DescriptionMetaData> getDescription()
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /**
+ * @see ResourceEnvRefMetaData#getInjectionTargets()
+ */
+ public List<InjectionTargetMetaData> getInjectionTargets()
+ {
+ return this.injectionTargets;
+ }
+
+ /**
+ * @see ResourceEnvRefMetaData#getMappedName()
+ */
+ public String getMappedName()
+ {
+ return this.mappedName;
+ }
+
+ /**
+ * @see ResourceEnvRefMetaData#getResourceEnvRefName()
+ */
+ public String getResourceEnvRefName()
+ {
+ return this.resEnvRefName;
+ }
+
+ /**
+ *
+ * @see org.jboss.ejb3.metadata.spi.javaee.ResourceEnvRefMetaData#getResourceEnvRefType()
+ */
+ public String getResourceEnvRefType()
+ {
+ return this.resEnvRefType;
+ }
+
+ /**
+ *
+ * @see org.jboss.ejb3.metadata.spi.javaee.ResourceEnvRefMetaData#setInjectionTargets(java.util.List)
+ */
+ public void setInjectionTargets(List<InjectionTargetMetaData> injectionTargets)
+ {
+ this.injectionTargets = injectionTargets;
+ }
+
+ /**
+ *
+ * @see org.jboss.ejb3.metadata.spi.javaee.ResourceEnvRefMetaData#setMappedName(java.lang.String)
+ */
+ public void setMappedName(String mappedName)
+ {
+ this.mappedName = mappedName;
+
+ }
+
+ /**
+ *
+ * @see org.jboss.ejb3.metadata.spi.javaee.ResourceEnvRefMetaData#setResourceEnvRefName(java.lang.String)
+ */
+ public void setResourceEnvRefName(String resEnvRefName)
+ {
+ this.resEnvRefName = resEnvRefName;
+
+ }
+
+ /**
+ *
+ * @see org.jboss.ejb3.metadata.spi.javaee.ResourceEnvRefMetaData#setResourceEnvRefType(java.lang.String)
+ */
+ public void setResourceEnvRefType(String resourceEnvRefType)
+ {
+ this.resEnvRefType = resourceEnvRefType;
+
+ }
+
+}
Added: projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/ResourceRefMetadataImpl.java
===================================================================
--- projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/ResourceRefMetadataImpl.java (rev 0)
+++ projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/ResourceRefMetadataImpl.java 2009-10-05 12:34:15 UTC (rev 94363)
@@ -0,0 +1,270 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt 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.ejb3.metadata.impl.javaee;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Set;
+
+import org.jboss.ejb3.metadata.spi.javaee.DescriptionMetaData;
+import org.jboss.ejb3.metadata.spi.javaee.InjectionTargetMetaData;
+import org.jboss.ejb3.metadata.spi.javaee.ResourceAuthenticationType;
+import org.jboss.ejb3.metadata.spi.javaee.ResourceRefMetaData;
+import org.jboss.ejb3.metadata.spi.javaee.ResourceSharingScopeType;
+import org.jboss.metadata.javaee.spec.ResourceAuthorityType;
+import org.jboss.metadata.javaee.spec.ResourceInjectionTargetMetaData;
+import org.jboss.metadata.javaee.spec.ResourceReferenceMetaData;
+
+/**
+ * ResourceRefMetadataImpl
+ *
+ * Represents metadata for resource-ref
+ *
+ * @author Jaikiran Pai
+ * @version $Revision: $
+ */
+public class ResourceRefMetadataImpl extends IdMetadataImpl implements ResourceRefMetaData
+{
+
+ /**
+ * The {@link ResourceReferenceMetaData} from which this {@link ResourceRefMetadataImpl}
+ * was constructed
+ */
+ private ResourceReferenceMetaData delegate;
+
+ /**
+ * Injection targets
+ */
+ private List<InjectionTargetMetaData> injectionTargets;
+
+ /**
+ * mapped-name
+ */
+ private String mappedName;
+
+ /**
+ * Resource authentication type
+ */
+ private ResourceAuthenticationType resAuthenticationType;
+
+ /**
+ * Name of this resource-ref
+ */
+ private String resRefName;
+
+ /**
+ * Resource sharing scope
+ */
+ private ResourceSharingScopeType resSharingScope;
+
+ /**
+ * Resource type
+ */
+ private String resType;
+
+ /**
+ * Constructs a {@link ResourceRefMetadataImpl} from a {@link ResourceRefMetaData}
+ *
+ * @param resRef
+ * @throws NullPointerException If the passed <code>resRef</code> is null
+ */
+ public ResourceRefMetadataImpl(ResourceReferenceMetaData resRef)
+ {
+ super(resRef.getId());
+ this.initialize(resRef);
+ }
+
+ /**
+ * Initializes this {@link ResourceRefMetadataImpl} from the state in <code>resRef</code>
+ *
+ * @param resRef
+ * @throws NullPointerException If the passed <code>resRef</code> is null
+ */
+ private void initialize(ResourceReferenceMetaData resRef)
+ {
+ // set the delegate
+ this.delegate = resRef;
+
+ this.mappedName = this.delegate.getMappedName();
+ this.resRefName = this.delegate.getResourceRefName();
+ this.resType = this.delegate.getType();
+
+ // injection targets
+ Set<ResourceInjectionTargetMetaData> injectionTargetsMD = this.delegate.getInjectionTargets();
+ if (injectionTargetsMD != null)
+ {
+ this.injectionTargets = new ArrayList<InjectionTargetMetaData>(injectionTargetsMD.size());
+ for (ResourceInjectionTargetMetaData injectionTarget : injectionTargetsMD)
+ {
+ this.injectionTargets.add(new InjectionTargetMetadataImpl(injectionTarget));
+ }
+ }
+
+ // resource authentication type
+ ResourceAuthorityType delegateResAuthType = this.delegate.getResAuth();
+ if (delegateResAuthType != null)
+ {
+ if (delegateResAuthType == ResourceAuthorityType.Application)
+ {
+ this.resAuthenticationType = ResourceAuthenticationType.APPLICATION;
+ }
+ else if (delegateResAuthType == ResourceAuthorityType.Container)
+ {
+ this.resAuthenticationType = ResourceAuthenticationType.CONTAINER;
+ }
+ }
+
+ // resource sharing scope
+ org.jboss.metadata.javaee.spec.ResourceSharingScopeType delegateResSharingScope = this.delegate
+ .getResSharingScope();
+ if (delegateResSharingScope != null)
+ {
+ if (delegateResSharingScope == org.jboss.metadata.javaee.spec.ResourceSharingScopeType.Shareable)
+ {
+ this.resSharingScope = ResourceSharingScopeType.SHAREABLE;
+ }
+ else if (delegateResSharingScope == org.jboss.metadata.javaee.spec.ResourceSharingScopeType.Unshareable)
+ {
+ this.resSharingScope = ResourceSharingScopeType.UNSHAREABLE;
+ }
+ }
+ }
+
+ public List<DescriptionMetaData> getDescription()
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /**
+ * @see ResourceRefMetaData#getInjectionTargets()
+ */
+ public List<InjectionTargetMetaData> getInjectionTargets()
+ {
+ return this.injectionTargets;
+ }
+
+ /**
+ *
+ * @see org.jboss.ejb3.metadata.spi.javaee.ResourceRefMetaData#getMappedName()
+ */
+ public String getMappedName()
+ {
+ return this.mappedName;
+ }
+
+ /**
+ *
+ * @see org.jboss.ejb3.metadata.spi.javaee.ResourceRefMetaData#getResAuth()
+ */
+ public ResourceAuthenticationType getResAuth()
+ {
+ return this.resAuthenticationType;
+ }
+
+ /**
+ *
+ * @see org.jboss.ejb3.metadata.spi.javaee.ResourceRefMetaData#getResRefName()
+ */
+ public String getResRefName()
+ {
+ return this.resRefName;
+ }
+
+ /**
+ *
+ * @see org.jboss.ejb3.metadata.spi.javaee.ResourceRefMetaData#getResSharingScope()
+ */
+ public ResourceSharingScopeType getResSharingScope()
+ {
+ return this.resSharingScope;
+ }
+
+ /**
+ *
+ * @see org.jboss.ejb3.metadata.spi.javaee.ResourceRefMetaData#getResType()
+ */
+ public String getResType()
+ {
+ return this.resType;
+ }
+
+ /**
+ *
+ * @see org.jboss.ejb3.metadata.spi.javaee.ResourceRefMetaData#setInjectionTargets(java.util.List)
+ */
+ public void setInjectionTargets(List<InjectionTargetMetaData> injectionTargets)
+ {
+ this.injectionTargets = injectionTargets;
+
+ }
+
+ /**
+ *
+ * @see org.jboss.ejb3.metadata.spi.javaee.ResourceRefMetaData#setMappedName(java.lang.String)
+ */
+ public void setMappedName(String mappedName)
+ {
+ this.mappedName = mappedName;
+ }
+
+ /**
+ *
+ * @see org.jboss.ejb3.metadata.spi.javaee.ResourceRefMetaData#setResAuth(org.jboss.ejb3.metadata.spi.javaee.ResourceAuthenticationType)
+ */
+ public void setResAuth(ResourceAuthenticationType resAuthType)
+ {
+ this.resAuthenticationType = resAuthType;
+
+ }
+
+ /**
+ *
+ * @see org.jboss.ejb3.metadata.spi.javaee.ResourceRefMetaData#setResRefName(java.lang.String)
+ */
+ public void setResRefName(String resourceRefName)
+ {
+ this.resRefName = resourceRefName;
+
+ }
+
+ /**
+ *
+ * @see org.jboss.ejb3.metadata.spi.javaee.ResourceRefMetaData#setResSharingScope(org.jboss.ejb3.metadata.spi.javaee.ResourceSharingScopeType)
+ */
+ public void setResSharingScope(ResourceSharingScopeType resourceSharingScope)
+ {
+ this.resSharingScope = resourceSharingScope;
+
+ }
+
+ /**
+ *
+ * @see org.jboss.ejb3.metadata.spi.javaee.ResourceRefMetaData#setResType(java.lang.String)
+ */
+ public void setResType(String resourceRefType)
+ {
+ this.resType = resourceRefType;
+
+ }
+
+}
Added: projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/RunAsMetadataImpl.java
===================================================================
--- projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/RunAsMetadataImpl.java (rev 0)
+++ projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/RunAsMetadataImpl.java 2009-10-05 12:34:15 UTC (rev 94363)
@@ -0,0 +1,104 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt 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.ejb3.metadata.impl.javaee;
+
+import java.util.List;
+
+import org.jboss.ejb3.metadata.spi.javaee.DescriptionMetaData;
+import org.jboss.ejb3.metadata.spi.javaee.RunAsMetaData;
+
+/**
+ * RunAsMetadataImpl
+ *
+ * Represents the metadata for run-as
+ *
+ * @author Jaikiran Pai
+ * @version $Revision: $
+ */
+public class RunAsMetadataImpl extends IdMetadataImpl implements RunAsMetaData
+{
+
+ /**
+ * The {@link org.jboss.metadata.javaee.spec.RunAsMetaData} from which this
+ * {@link RunAsMetadataImpl} was constructed
+ */
+ private org.jboss.metadata.javaee.spec.RunAsMetaData delegate;
+
+ /**
+ * Role name
+ */
+ private String roleName;
+
+ /**
+ * Constructs a {@link RunAsMetadataImpl} from a {@link org.jboss.metadata.javaee.spec.RunAsMetaData}
+ *
+ * @param runAs
+ * @throws NullPointerException If the passed <code>runAs</code> is null
+ */
+ public RunAsMetadataImpl(org.jboss.metadata.javaee.spec.RunAsMetaData runAs)
+ {
+ super(runAs.getId());
+ this.initialize(runAs);
+ }
+
+ /**
+ * Initializes this {@link RunAsMetadataImpl} from the state in <code>runAs</code>
+ *
+ * @param runAs
+ * @throws NullPointerException If the passed <code>runAs</code> is null
+ */
+ private void initialize(org.jboss.metadata.javaee.spec.RunAsMetaData runAs)
+ {
+ // set the delegate
+ this.delegate = runAs;
+
+ this.roleName = this.delegate.getRoleName();
+
+ }
+
+ /**
+ * @see org.jboss.ejb3.metadata.spi.javaee.RunAsMetaData#getDescription()
+ */
+ public List<DescriptionMetaData> getDescription()
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /**
+ * @see org.jboss.ejb3.metadata.spi.javaee.RunAsMetaData#getRoleName()
+ */
+ public String getRoleName()
+ {
+ return this.roleName;
+ }
+
+ /**
+ * @see org.jboss.ejb3.metadata.spi.javaee.RunAsMetaData#setRoleName(java.lang.String)
+ */
+ public void setRoleName(String roleName)
+ {
+ this.roleName = roleName;
+
+ }
+
+}
Added: projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/SecurityIdentityMetadataImpl.java
===================================================================
--- projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/SecurityIdentityMetadataImpl.java (rev 0)
+++ projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/SecurityIdentityMetadataImpl.java 2009-10-05 12:34:15 UTC (rev 94363)
@@ -0,0 +1,140 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt 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.ejb3.metadata.impl.javaee;
+
+import java.util.List;
+
+import org.jboss.ejb3.metadata.spi.javaee.DescriptionMetaData;
+import org.jboss.ejb3.metadata.spi.javaee.RunAsMetaData;
+import org.jboss.ejb3.metadata.spi.javaee.SecurityIdentityMetaData;
+
+/**
+ * SecurityIdentityMetadataImpl
+ *
+ * Represents the metadata for security-identity
+ *
+ * @author Jaikiran Pai
+ * @version $Revision: $
+ */
+public class SecurityIdentityMetadataImpl extends IdMetadataImpl implements SecurityIdentityMetaData
+{
+
+ /**
+ * The {@link org.jboss.metadata.ejb.spec.SecurityIdentityMetaData} from which this
+ * {@link SecurityIdentityMetadataImpl} was constructed
+ *
+ */
+ private org.jboss.metadata.ejb.spec.SecurityIdentityMetaData delegate;
+
+ /**
+ * run-as
+ */
+ private RunAsMetaData runAs;
+
+ /**
+ * Flag which decides whether the caller identity should be used
+ */
+ private boolean useCallerIdentity;
+
+ /**
+ * Constructs a {@link SecurityIdentityMetadataImpl} from a {@link org.jboss.metadata.ejb.spec.SecurityIdentityMetaData}
+ *
+ * @param secIdentity
+ * @throws NullPointerException If the passed <code>secIdentity</code> is null
+ */
+ public SecurityIdentityMetadataImpl(org.jboss.metadata.ejb.spec.SecurityIdentityMetaData secIdentity)
+ {
+ super(secIdentity.getId());
+ this.initialize(secIdentity);
+ }
+
+ /**
+ * Initializes this {@link SecurityIdentityMetadataImpl} from the state in <code>secIdentity</code>
+ *
+ * @param secIdentity
+ * @throws NullPointerException If the passed <code>secIdentity</code> is null
+ */
+ private void initialize(org.jboss.metadata.ejb.spec.SecurityIdentityMetaData secIdentity)
+ {
+ // set the delegate
+ this.delegate = secIdentity;
+
+ // run-as
+ org.jboss.metadata.javaee.spec.RunAsMetaData delegateRunAs = this.delegate.getRunAs();
+ if (delegateRunAs != null)
+ {
+ this.runAs = new RunAsMetadataImpl(delegateRunAs);
+ }
+
+ // use-caller-identity
+ if (this.delegate.getUseCallerIdentity() != null)
+ {
+ this.useCallerIdentity = true;
+ }
+
+ }
+
+ public List<DescriptionMetaData> getDescription()
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /**
+ *
+ * @see org.jboss.ejb3.metadata.spi.javaee.SecurityIdentityMetaData#getRunAs()
+ */
+ public RunAsMetaData getRunAs()
+ {
+ return this.runAs;
+ }
+
+ /**
+ *
+ * @see org.jboss.ejb3.metadata.spi.javaee.SecurityIdentityMetaData#isUseCallerIdentity()
+ */
+ public boolean isUseCallerIdentity()
+ {
+ return this.useCallerIdentity;
+ }
+
+ /**
+ *
+ * @see org.jboss.ejb3.metadata.spi.javaee.SecurityIdentityMetaData#setRunAs(org.jboss.ejb3.metadata.spi.javaee.RunAsMetaData)
+ */
+ public void setRunAs(RunAsMetaData runAs)
+ {
+ this.runAs = runAs;
+
+ }
+
+ /**
+ *
+ * @see org.jboss.ejb3.metadata.spi.javaee.SecurityIdentityMetaData#setUseCallerIdentity(boolean)
+ */
+ public void setUseCallerIdentity(boolean useCallerIdentity)
+ {
+ this.useCallerIdentity = useCallerIdentity;
+
+ }
+
+}
Added: projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/ServiceRefMetadataImpl.java
===================================================================
--- projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/ServiceRefMetadataImpl.java (rev 0)
+++ projects/ejb3/trunk/metadata-impl/src/main/java/org/jboss/ejb3/metadata/impl/javaee/ServiceRefMetadataImpl.java 2009-10-05 12:34:15 UTC (rev 94363)
@@ -0,0 +1,231 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt 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.ejb3.metadata.impl.javaee;
+
+import java.util.List;
+
+import javax.xml.namespace.QName;
+
+import org.jboss.ejb3.metadata.spi.javaee.DescriptionMetaData;
+import org.jboss.ejb3.metadata.spi.javaee.DisplayNameMetaData;
+import org.jboss.ejb3.metadata.spi.javaee.IconType;
+import org.jboss.ejb3.metadata.spi.javaee.InjectionTargetMetaData;
+import org.jboss.ejb3.metadata.spi.javaee.PortComponentRefMetaData;
+import org.jboss.ejb3.metadata.spi.javaee.ServiceRefHandlerChainsMetaData;
+import org.jboss.ejb3.metadata.spi.javaee.ServiceRefHandlerMetaData;
+import org.jboss.ejb3.metadata.spi.javaee.ServiceRefMetaData;
+import org.jboss.metadata.javaee.spec.ServiceReferenceMetaData;
+
+/**
+ * ServiceRefMetadataImpl
+ *
+ * Represents the metadata for a service-ref
+ *
+ * TODO Needs to be implemented
+ *
+ * @author Jaikiran Pai
+ * @version $Revision: $
+ */
+public class ServiceRefMetadataImpl extends IdMetadataImpl implements ServiceRefMetaData
+{
+
+ /**
+ * The {@link ServiceReferenceMetaData} from which this {@link ServiceRefMetadataImpl} was
+ * constructed
+ */
+ private ServiceReferenceMetaData delegate;
+
+ /**
+ * Constructs a {@link ServiceRefMetadataImpl} from a {@link ServiceReferenceMetaData}
+ *
+ * @param serviceRef
+ * @throws NullPointerException If the passed <code>serviceRef</code> is null
+ */
+ public ServiceRefMetadataImpl(ServiceReferenceMetaData serviceRef)
+ {
+ super(serviceRef.getId());
+ this.initialize(serviceRef);
+ }
+
+ /**
+ * Initializes this {@link ServiceRefMetadataImpl} from the state in <code>serviceRef</code>
+ *
+ * @param serviceRef
+ * @throws NullPointerException If the passed <code>serviceRef</code> is null
+ */
+ private void initialize(ServiceReferenceMetaData serviceRef)
+ {
+ // set the delegate
+ this.delegate = serviceRef;
+
+ }
+
+ public List<DescriptionMetaData> getDescription()
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public List<DisplayNameMetaData> getDisplayName()
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public ServiceRefHandlerChainsMetaData getHandlerChains()
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public List<ServiceRefHandlerMetaData> getHandlers()
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public List<IconType> getIcon()
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public List<InjectionTargetMetaData> getInjectionTargets()
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public String getJaxrpcMappingFile()
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public String getMappedName()
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public List<PortComponentRefMetaData> getPortComponentRefs()
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public String getServiceInterface()
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public QName getServiceQname()
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public String getServiceRefName()
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public String getServiceRefType()
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public String getWsdlFile()
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public void setHandlerChains(ServiceRefHandlerChainsMetaData serviceRefHandlerChains)
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ public void setHandlers(List<ServiceRefHandlerMetaData> serviceRefHandlers)
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ public void setInjectionTargets(List<InjectionTargetMetaData> injectionTargets)
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ public void setJaxrpcMappingFile(String jaxRpcMappingFile)
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ public void setMappedName(String mappedName)
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ public void setPortComponentRefs(List<PortComponentRefMetaData> portComponentRefs)
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ public void setServiceInterface(String serviceInterface)
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ public void setServiceQname(QName serviceQName)
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ public void setServiceRefName(String serviceRefName)
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ public void setServiceRefType(String serviceRefType)
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ public void setWsdlFile(String wsdlFileURILocation)
+ {
+ // TODO Auto-generated method stub
+
+ }
+}
More information about the jboss-cvs-commits
mailing list