[jboss-cvs] JBossAS SVN: r75901 - in projects/ejb3/tags: jboss-ejb3-test-0.1.2 and 1 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Jul 16 06:55:18 EDT 2008


Author: ALRubinger
Date: 2008-07-16 06:55:17 -0400 (Wed, 16 Jul 2008)
New Revision: 75901

Added:
   projects/ejb3/tags/jboss-ejb3-test-0.1.2/
   projects/ejb3/tags/jboss-ejb3-test-0.1.2/pom.xml
   projects/ejb3/tags/jboss-ejb3-test-0.1.2/src/main/java/org/jboss/ejb3/test/common/MetaDataHelper.java
Removed:
   projects/ejb3/tags/jboss-ejb3-test-0.1.2/pom.xml
   projects/ejb3/tags/jboss-ejb3-test-0.1.2/src/main/java/org/jboss/ejb3/test/common/MetaDataHelper.java
Log:
[maven-release-plugin]  copy for tag jboss-ejb3-test-0.1.2

Copied: projects/ejb3/tags/jboss-ejb3-test-0.1.2 (from rev 75881, projects/ejb3/trunk/test)

Deleted: projects/ejb3/tags/jboss-ejb3-test-0.1.2/pom.xml
===================================================================
--- projects/ejb3/trunk/test/pom.xml	2008-07-16 09:57:50 UTC (rev 75881)
+++ projects/ejb3/tags/jboss-ejb3-test-0.1.2/pom.xml	2008-07-16 10:55:17 UTC (rev 75901)
@@ -1,87 +0,0 @@
-<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">
-
-  <!-- Define Parent -->
-  <parent>
-    <artifactId>jboss-ejb3-build</artifactId>
-    <groupId>org.jboss.ejb3</groupId>
-    <version>0.13.10-SNAPSHOT</version>
-    <relativePath>../build/pom.xml</relativePath>
-  </parent>
-
-  <!-- Maven POM Model Version -->
-  <modelVersion>4.0.0</modelVersion>
-
-  <!-- Artifact Information -->
-  <groupId>org.jboss.ejb3</groupId>
-  <artifactId>jboss-ejb3-test</artifactId>
-  <version>0.1.2-SNAPSHOT</version>
-  <name>JBoss EJB 3.0 Testing Libraries</name>
-  <description>
-    JBoss EJB 3.0 Testing Libraries
-  </description>
-  <url>http://www.jboss.org/jbossejb3/</url>
-  
-  <build>
-
-        <plugins>
-          <!-- Surefire -->
-          <plugin>
-            <artifactId>maven-surefire-plugin</artifactId>
-            <configuration>
-              <redirectTestOutputToFile>true</redirectTestOutputToFile>
-              <printSummary>true</printSummary>
-              <testFailureIgnore>false</testFailureIgnore>
-              <includes>
-                <include>**/*TestCase.java</include>
-                <include>**/*TestSuite.java</include>
-              </includes>
-              <forkMode>always</forkMode>
-              <argLine>-ea</argLine>
-            </configuration>
-          </plugin>
-
-        </plugins>
-
-  </build>
-
-  <!-- Dependencies -->
-
-  <!-- 
-    
-    Version information is centralized in 
-    the Parent Build POM
-    
-  -->
-
-  <dependencies>
-
-    <!-- JUnit -->
-    <dependency>
-      <groupId>junit</groupId>
-      <artifactId>junit</artifactId>
-    </dependency>
-
-    <!-- Logging -->
-    <dependency>
-      <groupId>org.jboss.logging</groupId>
-      <artifactId>jboss-logging-spi</artifactId>
-    </dependency>
-
-    <dependency>
-      <groupId>org.jboss.logging</groupId>
-      <artifactId>jboss-logging-log4j</artifactId>
-      <scope>test</scope>
-    </dependency>
-    
-    <dependency>
-      <groupId>org.jboss.microcontainer</groupId>
-      <artifactId>jboss-kernel</artifactId>
-    </dependency>
-    
-    <dependency>
-      <groupId>org.jboss.metadata</groupId>
-      <artifactId>jboss-metadata</artifactId>
-    </dependency>
-    
-  </dependencies>
-</project>

Copied: projects/ejb3/tags/jboss-ejb3-test-0.1.2/pom.xml (from rev 75900, projects/ejb3/trunk/test/pom.xml)
===================================================================
--- projects/ejb3/tags/jboss-ejb3-test-0.1.2/pom.xml	                        (rev 0)
+++ projects/ejb3/tags/jboss-ejb3-test-0.1.2/pom.xml	2008-07-16 10:55:17 UTC (rev 75901)
@@ -0,0 +1,93 @@
+<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">
+
+  <!-- Define Parent -->
+  <parent>
+    <artifactId>jboss-ejb3-build</artifactId>
+    <groupId>org.jboss.ejb3</groupId>
+    <version>0.13.10</version>
+    <relativePath>../build/pom.xml</relativePath>
+  </parent>
+
+  <!-- Maven POM Model Version -->
+  <modelVersion>4.0.0</modelVersion>
+
+  <!-- Artifact Information -->
+  <groupId>org.jboss.ejb3</groupId>
+  <artifactId>jboss-ejb3-test</artifactId>
+  <version>0.1.2</version>
+  <name>JBoss EJB 3.0 Testing Libraries</name>
+  <description>
+    JBoss EJB 3.0 Testing Libraries
+  </description>
+  <url>http://www.jboss.org/jbossejb3/</url>
+  
+  <build>
+
+        <plugins>
+          <!-- Surefire -->
+          <plugin>
+            <artifactId>maven-surefire-plugin</artifactId>
+            <configuration>
+              <redirectTestOutputToFile>true</redirectTestOutputToFile>
+              <printSummary>true</printSummary>
+              <testFailureIgnore>false</testFailureIgnore>
+              <includes>
+                <include>**/*TestCase.java</include>
+                <include>**/*TestSuite.java</include>
+              </includes>
+              <forkMode>always</forkMode>
+              <argLine>-ea</argLine>
+            </configuration>
+          </plugin>
+
+        </plugins>
+
+  </build>
+
+  <!-- Dependencies -->
+
+  <!-- 
+    
+    Version information is centralized in 
+    the Parent Build POM
+    
+  -->
+
+  <dependencies>
+
+    <!-- JUnit -->
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+    </dependency>
+
+    <!-- Logging -->
+    <dependency>
+      <groupId>org.jboss.logging</groupId>
+      <artifactId>jboss-logging-spi</artifactId>
+    </dependency>
+
+    <dependency>
+      <groupId>org.jboss.logging</groupId>
+      <artifactId>jboss-logging-log4j</artifactId>
+      <scope>test</scope>
+    </dependency>
+    
+    <dependency>
+      <groupId>org.jboss.microcontainer</groupId>
+      <artifactId>jboss-kernel</artifactId>
+    </dependency>
+    
+    <dependency>
+      <groupId>org.jboss.metadata</groupId>
+      <artifactId>jboss-metadata</artifactId>
+    </dependency>
+    
+  </dependencies>
+
+  <scm>
+    <connection>scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/tags/jboss-ejb3-test-0.1.2</connection>
+    <developerConnection>scm:svn:https://svn.jboss.org/repos/jbossas/projects/ejb3/tags/jboss-ejb3-test-0.1.2</developerConnection>
+    <url>http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/tags/jboss-ejb3-test-0.1.2</url>
+  </scm>
+</project>

Deleted: projects/ejb3/tags/jboss-ejb3-test-0.1.2/src/main/java/org/jboss/ejb3/test/common/MetaDataHelper.java
===================================================================
--- projects/ejb3/trunk/test/src/main/java/org/jboss/ejb3/test/common/MetaDataHelper.java	2008-07-16 09:57:50 UTC (rev 75881)
+++ projects/ejb3/tags/jboss-ejb3-test-0.1.2/src/main/java/org/jboss/ejb3/test/common/MetaDataHelper.java	2008-07-16 10:55:17 UTC (rev 75901)
@@ -1,145 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2008, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
-  *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.ejb3.test.common;
-
-import java.lang.reflect.AnnotatedElement;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.HashSet;
-import java.util.List;
-
-import org.jboss.logging.Logger;
-import org.jboss.metadata.annotation.creator.ejb.jboss.JBoss50Creator;
-import org.jboss.metadata.annotation.finder.AnnotationFinder;
-import org.jboss.metadata.annotation.finder.DefaultAnnotationFinder;
-import org.jboss.metadata.ejb.jboss.JBossAssemblyDescriptorMetaData;
-import org.jboss.metadata.ejb.jboss.JBossEnterpriseBeansMetaData;
-import org.jboss.metadata.ejb.jboss.JBossMetaData;
-import org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData;
-import org.jboss.metadata.ejb.jboss.RemoteBindingMetaData;
-import org.jboss.metadata.ejb.jboss.jndipolicy.plugins.BasicJndiBindingPolicy;
-import org.jboss.metadata.ejb.jboss.jndipolicy.plugins.JBossSessionPolicyDecorator;
-import org.jboss.metadata.ejb.spec.BusinessLocalsMetaData;
-import org.jboss.metadata.ejb.spec.BusinessRemotesMetaData;
-
-/**
- * @author <a href="mailto:carlo.dewolf at jboss.com">Carlo de Wolf</a>
- * @version $Revision: $
- */
-public class MetaDataHelper
-{
-   private static final Logger log = Logger.getLogger(MetaDataHelper.class);
-
-   /**
-    * Create an empty JBossSessionBeanMetaData to satisfy BeanInterceptorMetaDataBridge.
-    * 
-    * @return
-    */
-   public static JBossSessionBeanMetaData createMockBeanMetaData()
-   {
-      JBossMetaData metaData = new JBossMetaData();
-      JBossEnterpriseBeansMetaData enterpriseBeans = new JBossEnterpriseBeansMetaData();
-      metaData.setEnterpriseBeans(enterpriseBeans);
-      metaData.setAssemblyDescriptor(new JBossAssemblyDescriptorMetaData());
-      JBossSessionBeanMetaData sessionBeanMetaData = new JBossSessionBeanMetaData();
-      sessionBeanMetaData.setEnterpriseBeansMetaData(enterpriseBeans);
-      return sessionBeanMetaData;
-   }
-
-   /**
-    * Mock the appropriate deployers and populate metadata for the EJB with the
-    * specified implementation class
-    * 
-    * @param beanImplClass
-    * @return
-    */
-   public static JBossSessionBeanMetaData getMetadataFromBeanImplClass(Class<?> beanImplClass)
-   {
-      // emulate annotation deployer
-      AnnotationFinder<AnnotatedElement> finder = new DefaultAnnotationFinder<AnnotatedElement>();
-      Collection<Class<?>> classes = new HashSet<Class<?>>();
-      classes.add(beanImplClass);
-      JBossMetaData metadata = new JBoss50Creator(finder).create(classes);
-
-      // Get delegate
-      JBossSessionBeanMetaData beanMetaDataDelegate = (JBossSessionBeanMetaData) metadata
-            .getEnterpriseBean(beanImplClass.getSimpleName());
-
-      // Mock up a @RemoteBinding if none specified but are required
-      if ((beanMetaDataDelegate.getBusinessRemotes() != null || beanMetaDataDelegate.getHome() != null)
-            && (beanMetaDataDelegate.getRemoteBindings() == null || beanMetaDataDelegate.getRemoteBindings().size() == 0))
-      {
-         List<RemoteBindingMetaData> remoteBindings = new ArrayList<RemoteBindingMetaData>();
-         RemoteBindingMetaData remoteBinding = new RemoteBindingMetaData();
-         remoteBindings.add(remoteBinding);
-         beanMetaDataDelegate.setRemoteBindings(remoteBindings);
-      }
-
-      // Use a Session JNDI Binding Policy for the metadata
-      JBossSessionPolicyDecorator beanMetaData = new JBossSessionPolicyDecorator(beanMetaDataDelegate,
-            new BasicJndiBindingPolicy());
-
-      /*
-       * Log Out JNDI Names
-       */
-
-      // Business Remotes
-      BusinessRemotesMetaData businessRemotes = beanMetaData.getBusinessRemotes();
-      if (businessRemotes != null)
-      {
-         log.info("Business Remote JNDI Name: " + beanMetaData.getJndiName()); // [beanName]/remote
-         for (String businessInterface : beanMetaData.getBusinessRemotes())
-         {
-            log.info("Business Remote JNDI Name for " + businessInterface + ": "
-                  + beanMetaData.determineResolvedJndiName(businessInterface));
-         }
-      }
-
-      // Business Locals
-      BusinessLocalsMetaData businessLocals = beanMetaData.getBusinessLocals();
-      if (businessLocals != null)
-      {
-         log.info("Local JNDI Name: " + beanMetaData.getLocalJndiName()); // [beanName]/local
-         for (String businessInterface : beanMetaData.getBusinessLocals())
-         {
-            log.info("Business Local JNDI Name for " + businessInterface + ": "
-                  + beanMetaData.determineResolvedJndiName(businessInterface));
-         }
-      }
-
-      // Local Home
-      String localHome = beanMetaData.getLocalHome();
-      if (localHome != null && !localHome.trim().equals(""))
-      {
-         log.info("Local Home JNDI Name: " + beanMetaData.determineResolvedJndiName(localHome));
-      }
-
-      // Home
-      String home = beanMetaData.getHome();
-      if (home != null && !home.trim().equals(""))
-      {
-         log.info("Home JNDI Name: " + beanMetaData.determineResolvedJndiName(home));
-      }
-
-      return beanMetaData;
-   }
-}

Copied: projects/ejb3/tags/jboss-ejb3-test-0.1.2/src/main/java/org/jboss/ejb3/test/common/MetaDataHelper.java (from rev 75883, projects/ejb3/trunk/test/src/main/java/org/jboss/ejb3/test/common/MetaDataHelper.java)
===================================================================
--- projects/ejb3/tags/jboss-ejb3-test-0.1.2/src/main/java/org/jboss/ejb3/test/common/MetaDataHelper.java	                        (rev 0)
+++ projects/ejb3/tags/jboss-ejb3-test-0.1.2/src/main/java/org/jboss/ejb3/test/common/MetaDataHelper.java	2008-07-16 10:55:17 UTC (rev 75901)
@@ -0,0 +1,147 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+  *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ejb3.test.common;
+
+import java.lang.reflect.AnnotatedElement;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.HashSet;
+import java.util.List;
+
+import org.jboss.logging.Logger;
+import org.jboss.metadata.annotation.creator.ejb.jboss.JBoss50Creator;
+import org.jboss.metadata.annotation.finder.AnnotationFinder;
+import org.jboss.metadata.annotation.finder.DefaultAnnotationFinder;
+import org.jboss.metadata.ejb.jboss.JBossAssemblyDescriptorMetaData;
+import org.jboss.metadata.ejb.jboss.JBossEnterpriseBeansMetaData;
+import org.jboss.metadata.ejb.jboss.JBossMetaData;
+import org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData;
+import org.jboss.metadata.ejb.jboss.RemoteBindingMetaData;
+import org.jboss.metadata.ejb.jboss.jndipolicy.plugins.BasicJndiBindingPolicy;
+import org.jboss.metadata.ejb.jboss.jndipolicy.plugins.JBossSessionPolicyDecorator;
+import org.jboss.metadata.ejb.spec.BusinessLocalsMetaData;
+import org.jboss.metadata.ejb.spec.BusinessRemotesMetaData;
+
+/**
+ * @author <a href="mailto:carlo.dewolf at jboss.com">Carlo de Wolf</a>
+ * @version $Revision: $
+ */
+public class MetaDataHelper
+{
+   private static final Logger log = Logger.getLogger(MetaDataHelper.class);
+
+   /**
+    * Create an empty JBossSessionBeanMetaData to satisfy BeanInterceptorMetaDataBridge.
+    * 
+    * @return
+    */
+   public static JBossSessionBeanMetaData createMockBeanMetaData()
+   {
+      JBossMetaData metaData = new JBossMetaData();
+      JBossEnterpriseBeansMetaData enterpriseBeans = new JBossEnterpriseBeansMetaData();
+      metaData.setEnterpriseBeans(enterpriseBeans);
+      metaData.setAssemblyDescriptor(new JBossAssemblyDescriptorMetaData());
+      JBossSessionBeanMetaData sessionBeanMetaData = new JBossSessionBeanMetaData();
+      sessionBeanMetaData.setEnterpriseBeansMetaData(enterpriseBeans);
+      return sessionBeanMetaData;
+   }
+
+   /**
+    * Mock the appropriate deployers and populate metadata for the EJB with the
+    * specified implementation class
+    * 
+    * @param beanImplClass
+    * @return
+    */
+   public static JBossSessionBeanMetaData getMetadataFromBeanImplClass(Class<?> beanImplClass)
+   {
+      // emulate annotation deployer
+      AnnotationFinder<AnnotatedElement> finder = new DefaultAnnotationFinder<AnnotatedElement>();
+      Collection<Class<?>> classes = new HashSet<Class<?>>();
+      classes.add(beanImplClass);
+      JBossMetaData metadata = new JBoss50Creator(finder).create(classes);
+
+      // Get delegate
+      String ejbName = beanImplClass.getSimpleName();
+      JBossSessionBeanMetaData beanMetaDataDelegate = (JBossSessionBeanMetaData) metadata
+            .getEnterpriseBean(ejbName);
+      assert beanMetaDataDelegate!=null : "Bean metadata for " + ejbName + " could not be found";
+
+      // Mock up a @RemoteBinding if none specified but are required
+      if ((beanMetaDataDelegate.getBusinessRemotes() != null || beanMetaDataDelegate.getHome() != null)
+            && (beanMetaDataDelegate.getRemoteBindings() == null || beanMetaDataDelegate.getRemoteBindings().size() == 0))
+      {
+         List<RemoteBindingMetaData> remoteBindings = new ArrayList<RemoteBindingMetaData>();
+         RemoteBindingMetaData remoteBinding = new RemoteBindingMetaData();
+         remoteBindings.add(remoteBinding);
+         beanMetaDataDelegate.setRemoteBindings(remoteBindings);
+      }
+
+      // Use a Session JNDI Binding Policy for the metadata
+      JBossSessionPolicyDecorator beanMetaData = new JBossSessionPolicyDecorator(beanMetaDataDelegate,
+            new BasicJndiBindingPolicy());
+
+      /*
+       * Log Out JNDI Names
+       */
+
+      // Business Remotes
+      BusinessRemotesMetaData businessRemotes = beanMetaData.getBusinessRemotes();
+      if (businessRemotes != null)
+      {
+         log.info("Business Remote JNDI Name: " + beanMetaData.getJndiName()); // [beanName]/remote
+         for (String businessInterface : beanMetaData.getBusinessRemotes())
+         {
+            log.info("Business Remote JNDI Name for " + businessInterface + ": "
+                  + beanMetaData.determineResolvedJndiName(businessInterface));
+         }
+      }
+
+      // Business Locals
+      BusinessLocalsMetaData businessLocals = beanMetaData.getBusinessLocals();
+      if (businessLocals != null)
+      {
+         log.info("Local JNDI Name: " + beanMetaData.getLocalJndiName()); // [beanName]/local
+         for (String businessInterface : beanMetaData.getBusinessLocals())
+         {
+            log.info("Business Local JNDI Name for " + businessInterface + ": "
+                  + beanMetaData.determineResolvedJndiName(businessInterface));
+         }
+      }
+
+      // Local Home
+      String localHome = beanMetaData.getLocalHome();
+      if (localHome != null && !localHome.trim().equals(""))
+      {
+         log.info("Local Home JNDI Name: " + beanMetaData.determineResolvedJndiName(localHome));
+      }
+
+      // Home
+      String home = beanMetaData.getHome();
+      if (home != null && !home.trim().equals(""))
+      {
+         log.info("Home JNDI Name: " + beanMetaData.determineResolvedJndiName(home));
+      }
+
+      return beanMetaData;
+   }
+}




More information about the jboss-cvs-commits mailing list