[jboss-cvs] JBossAS SVN: r105019 - in projects/ejb3/tags: jboss-ejb3-deployers-1.1.3 and 2 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu May 20 02:32:04 EDT 2010
Author: wolfc
Date: 2010-05-20 02:32:03 -0400 (Thu, 20 May 2010)
New Revision: 105019
Added:
projects/ejb3/tags/jboss-ejb3-deployers-1.1.3/
projects/ejb3/tags/jboss-ejb3-deployers-1.1.3/pom.xml
projects/ejb3/tags/jboss-ejb3-deployers-1.1.3/src/main/java/org/jboss/ejb3/deployers/EJBsDeployer.java
projects/ejb3/tags/jboss-ejb3-deployers-1.1.3/src/test/java/org/
Removed:
projects/ejb3/tags/jboss-ejb3-deployers-1.1.3/pom.xml
projects/ejb3/tags/jboss-ejb3-deployers-1.1.3/src/main/java/org/jboss/ejb3/deployers/EJBsDeployer.java
Log:
[maven-release-plugin] copy for tag jboss-ejb3-deployers-1.1.3
Copied: projects/ejb3/tags/jboss-ejb3-deployers-1.1.3 (from rev 104921, projects/ejb3/trunk/deployers)
Deleted: projects/ejb3/tags/jboss-ejb3-deployers-1.1.3/pom.xml
===================================================================
--- projects/ejb3/trunk/deployers/pom.xml 2010-05-18 08:49:18 UTC (rev 104921)
+++ projects/ejb3/tags/jboss-ejb3-deployers-1.1.3/pom.xml 2010-05-20 06:32:03 UTC (rev 105019)
@@ -1,78 +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">
-
- <!-- Parent -->
- <parent>
- <groupId>org.jboss.ejb3</groupId>
- <artifactId>jboss-ejb3-build</artifactId>
- <version>1.0.10</version>
- </parent>
-
- <!-- Model Version -->
- <modelVersion>4.0.0</modelVersion>
-
- <!-- Artifact Configuration -->
- <groupId>org.jboss.ejb3</groupId>
- <artifactId>jboss-ejb3-deployers</artifactId>
- <name>JBoss EJB3 Deployers</name>
- <version>1.1.3-SNAPSHOT</version>
- <description>
- Deployers conforming to the MC Deployers SPI for EJB3
- </description>
-
- <!-- Properties -->
- <properties>
-
- <!-- Versioning -->
- <version.org.jboss.deployers.jboss_deployers_spi>2.0.0.CR2</version.org.jboss.deployers.jboss_deployers_spi>
- <version.org.jboss.as.jboss_as_server>5.0.0.CR2</version.org.jboss.as.jboss_as_server>
- <version.org.jboss.ejb3_jboss.ejb3.common>1.0.0</version.org.jboss.ejb3_jboss.ejb3.common>
- <version.org.jboss.deployers_jboss-deployers-vfs>2.0.0.CR5</version.org.jboss.deployers_jboss-deployers-vfs>
-
- </properties>
-
- <!-- Dependencies -->
- <dependencies>
-
- <!-- JUnit -->
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <scope>test</scope>
- </dependency>
-
- <dependency>
- <groupId>org.jboss.metadata</groupId>
- <artifactId>jboss-metadata</artifactId>
- </dependency>
-
- <dependency>
- <groupId>org.jboss.ejb3</groupId>
- <artifactId>jboss-ejb3-common</artifactId>
- <version>${version.org.jboss.ejb3_jboss.ejb3.common}</version>
- </dependency>
-
- <!-- MC Deployers SPI -->
- <dependency>
- <groupId>org.jboss.deployers</groupId>
- <artifactId>jboss-deployers-spi</artifactId>
- <version>${version.org.jboss.deployers.jboss_deployers_spi}</version>
- </dependency>
-
-
- <dependency>
- <groupId>org.jboss.jbossas</groupId>
- <artifactId>jboss-as-server</artifactId>
- <version>${version.org.jboss.as.jboss_as_server}</version>
- <exclusions>
- <!-- jboss-jpa-deployers brings in banned dependency on org.jboss:jboss-transaction-spi, so exclude it -->
- <exclusion>
- <groupId>org.jboss.jpa</groupId>
- <artifactId>jboss-jpa-deployers</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
-
-
-
- </dependencies>
-</project>
Copied: projects/ejb3/tags/jboss-ejb3-deployers-1.1.3/pom.xml (from rev 105018, projects/ejb3/trunk/deployers/pom.xml)
===================================================================
--- projects/ejb3/tags/jboss-ejb3-deployers-1.1.3/pom.xml (rev 0)
+++ projects/ejb3/tags/jboss-ejb3-deployers-1.1.3/pom.xml 2010-05-20 06:32:03 UTC (rev 105019)
@@ -0,0 +1,88 @@
+<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 -->
+ <parent>
+ <groupId>org.jboss.ejb3</groupId>
+ <artifactId>jboss-ejb3-build</artifactId>
+ <version>1.0.12</version>
+ </parent>
+
+ <!-- Model Version -->
+ <modelVersion>4.0.0</modelVersion>
+
+ <!-- Artifact Configuration -->
+ <groupId>org.jboss.ejb3</groupId>
+ <artifactId>jboss-ejb3-deployers</artifactId>
+ <name>JBoss EJB3 Deployers</name>
+ <version>1.1.3</version>
+ <description>
+ Deployers conforming to the MC Deployers SPI for EJB3
+ </description>
+
+ <!-- Properties -->
+ <properties>
+
+ <!-- Versioning -->
+ <version.org.jboss.deployers.jboss_deployers_spi>2.0.0.CR2</version.org.jboss.deployers.jboss_deployers_spi>
+ <version.org.jboss.as.jboss_as_server>5.0.0.CR2</version.org.jboss.as.jboss_as_server>
+ <version.org.jboss.ejb3_jboss.ejb3.common>1.0.0</version.org.jboss.ejb3_jboss.ejb3.common>
+ <version.org.jboss.deployers_jboss-deployers-vfs>2.0.0.CR5</version.org.jboss.deployers_jboss-deployers-vfs>
+
+ </properties>
+
+ <!-- Dependencies -->
+ <dependencies>
+
+ <!-- JUnit -->
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jboss.metadata</groupId>
+ <artifactId>jboss-metadata</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jboss.ejb3</groupId>
+ <artifactId>jboss-ejb3-common</artifactId>
+ <version>${version.org.jboss.ejb3_jboss.ejb3.common}</version>
+ </dependency>
+
+ <!-- MC Deployers SPI -->
+ <dependency>
+ <groupId>org.jboss.deployers</groupId>
+ <artifactId>jboss-deployers-spi</artifactId>
+ <version>${version.org.jboss.deployers.jboss_deployers_spi}</version>
+ </dependency>
+
+
+ <dependency>
+ <groupId>org.jboss.jbossas</groupId>
+ <artifactId>jboss-as-server</artifactId>
+ <version>${version.org.jboss.as.jboss_as_server}</version>
+ <exclusions>
+ <!-- jboss-jpa-deployers brings in banned dependency on org.jboss:jboss-transaction-spi, so exclude it -->
+ <exclusion>
+ <groupId>org.jboss.jpa</groupId>
+ <artifactId>jboss-jpa-deployers</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+
+ <dependency>
+ <groupId>org.mockito</groupId>
+ <artifactId>mockito-core</artifactId>
+ <version>1.8.4</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+ <scm>
+ <connection>scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/tags/jboss-ejb3-deployers-1.1.3</connection>
+ <developerConnection>scm:svn:https://svn.jboss.org/repos/jbossas/projects/ejb3/tags/jboss-ejb3-deployers-1.1.3</developerConnection>
+ <url>http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/tags/jboss-ejb3-deployers-1.1.3</url>
+ </scm>
+</project>
Deleted: projects/ejb3/tags/jboss-ejb3-deployers-1.1.3/src/main/java/org/jboss/ejb3/deployers/EJBsDeployer.java
===================================================================
--- projects/ejb3/trunk/deployers/src/main/java/org/jboss/ejb3/deployers/EJBsDeployer.java 2010-05-18 08:49:18 UTC (rev 104921)
+++ projects/ejb3/tags/jboss-ejb3-deployers-1.1.3/src/main/java/org/jboss/ejb3/deployers/EJBsDeployer.java 2010-05-20 06:32:03 UTC (rev 105019)
@@ -1,135 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2009, 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.deployers;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.jboss.deployers.spi.DeploymentException;
-import org.jboss.deployers.spi.deployer.helpers.AbstractComponentDeployer;
-import org.jboss.deployers.spi.deployer.helpers.AbstractDeploymentVisitor;
-import org.jboss.deployers.spi.deployer.helpers.DeploymentVisitor;
-import org.jboss.deployers.structure.spi.DeploymentUnit;
-import org.jboss.ejb3.common.deployers.spi.AttachmentNames;
-import org.jboss.logging.Logger;
-import org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData;
-import org.jboss.metadata.ejb.jboss.JBossMetaData;
-
-/**
- * Create components out of EJB 3 JBossMetaData.
- *
- * @author <a href="mailto:cdewolf at redhat.com">Carlo de Wolf</a>
- * @version $Revision: $
- */
-public class EJBsDeployer extends AbstractComponentDeployer<JBossMetaData, JBossEnterpriseBeanMetaData>
-{
- private static final Logger log = Logger.getLogger(EJBsDeployer.class);
-
- private static final JBossDeploymentVisitor deploymentVisitor = new JBossDeploymentVisitor();
-
- /**
- *
- */
- public EJBsDeployer()
- {
- // Since we don't set component visitor
- addInput(deploymentVisitor.getVisitorType());
- setOutput(deploymentVisitor.getComponentType());
-
- // for ordering
- addInput(AttachmentNames.PROCESSED_METADATA);
-
- setDeploymentVisitor(deploymentVisitor);
- }
-
- private static class JBossDeploymentVisitor extends AbstractDeploymentVisitor<JBossEnterpriseBeanMetaData, JBossMetaData>
- {
- @Override
- public Class<JBossEnterpriseBeanMetaData> getComponentType()
- {
- return JBossEnterpriseBeanMetaData.class;
- }
-
- @Override
- protected List<? extends JBossEnterpriseBeanMetaData> getComponents(JBossMetaData deployment)
- {
- return new ArrayList<JBossEnterpriseBeanMetaData>(deployment.getEnterpriseBeans());
- }
-
- @Override
- protected String getComponentName(JBossEnterpriseBeanMetaData attachment)
- {
- return JBossEnterpriseBeanMetaData.class.getName() + "." + attachment.getEjbName();
- }
-
- public Class<JBossMetaData> getVisitorType()
- {
- return JBossMetaData.class;
- }
- }
-
- @Override
- protected <U> void deploy(DeploymentUnit unit, DeploymentVisitor<U> visitor) throws DeploymentException
- {
- // I only want a single attachment deployed
-
- U deployment = unit.getAttachment(visitor.getVisitorType());
- try
- {
- visitor.deploy(unit, deployment);
- }
- catch(Throwable t)
- {
- throw DeploymentException.rethrowAsDeploymentException("Error deploying: " + unit.getName(), t);
- }
- }
-
- @Override
- public void internalDeploy(DeploymentUnit unit) throws DeploymentException
- {
- if(!isValid(unit))
- return;
-
- log.debug("Processing " + unit);
-
- super.internalDeploy(unit);
- }
-
- @Override
- public void internalUndeploy(DeploymentUnit unit)
- {
- // if we don't check then undeploy will be done for stuff that was never deployed.
- if(!isValid(unit))
- return;
-
- super.internalUndeploy(unit);
- }
-
- protected boolean isValid(DeploymentUnit unit)
- {
- // for good measure, we only do this for EJB 3 deployments
- JBossMetaData md = unit.getAttachment(JBossMetaData.class);
- if(md == null || !md.isEJB3x())
- return false;
- return true;
- }
-}
Copied: projects/ejb3/tags/jboss-ejb3-deployers-1.1.3/src/main/java/org/jboss/ejb3/deployers/EJBsDeployer.java (from rev 105001, projects/ejb3/trunk/deployers/src/main/java/org/jboss/ejb3/deployers/EJBsDeployer.java)
===================================================================
--- projects/ejb3/tags/jboss-ejb3-deployers-1.1.3/src/main/java/org/jboss/ejb3/deployers/EJBsDeployer.java (rev 0)
+++ projects/ejb3/tags/jboss-ejb3-deployers-1.1.3/src/main/java/org/jboss/ejb3/deployers/EJBsDeployer.java 2010-05-20 06:32:03 UTC (rev 105019)
@@ -0,0 +1,125 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, 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.deployers;
+
+import org.jboss.deployers.spi.DeploymentException;
+import org.jboss.deployers.spi.deployer.helpers.AbstractComponentDeployer;
+import org.jboss.deployers.spi.deployer.helpers.AbstractDeploymentVisitor;
+import org.jboss.deployers.spi.deployer.helpers.DeploymentVisitor;
+import org.jboss.deployers.structure.spi.DeploymentUnit;
+import org.jboss.ejb3.common.deployers.spi.AttachmentNames;
+import org.jboss.logging.Logger;
+import org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData;
+import org.jboss.metadata.ejb.jboss.JBossEnterpriseBeansMetaData;
+import org.jboss.metadata.ejb.jboss.JBossMetaData;
+
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * Create components out of EJB 3 JBossMetaData.
+ *
+ * @author <a href="mailto:cdewolf at redhat.com">Carlo de Wolf</a>
+ * @version $Revision: $
+ */
+public class EJBsDeployer extends AbstractComponentDeployer<JBossMetaData, JBossEnterpriseBeanMetaData>
+{
+ private static final Logger log = Logger.getLogger(EJBsDeployer.class);
+
+ private static final JBossDeploymentVisitor deploymentVisitor = new JBossDeploymentVisitor();
+
+ private String attachmentName = AttachmentNames.PROCESSED_METADATA;
+
+ /**
+ *
+ */
+ public EJBsDeployer()
+ {
+ // Since we don't set component visitor
+ addInput(attachmentName);
+ setOutput(deploymentVisitor.getComponentType());
+
+ setDeploymentVisitor(deploymentVisitor);
+ }
+
+ private static class JBossDeploymentVisitor extends AbstractDeploymentVisitor<JBossEnterpriseBeanMetaData, JBossMetaData>
+ {
+ @Override
+ public Class<JBossEnterpriseBeanMetaData> getComponentType()
+ {
+ return JBossEnterpriseBeanMetaData.class;
+ }
+
+ @Override
+ protected List<? extends JBossEnterpriseBeanMetaData> getComponents(JBossMetaData deployment)
+ {
+ if(deployment == null || !deployment.isEJB3x())
+ return null;
+ JBossEnterpriseBeansMetaData enterpriseBeans = deployment.getEnterpriseBeans();
+ if(enterpriseBeans == null)
+ {
+ log.warn("EJBTHREE-2095: did not find any beans in " + deployment + " which is a violation of the xsd");
+ return null;
+ }
+ return new ArrayList<JBossEnterpriseBeanMetaData>(enterpriseBeans);
+ }
+
+ @Override
+ protected String getComponentName(JBossEnterpriseBeanMetaData attachment)
+ {
+ return JBossEnterpriseBeanMetaData.class.getName() + "." + attachment.getEjbName();
+ }
+
+ public Class<JBossMetaData> getVisitorType()
+ {
+ return JBossMetaData.class;
+ }
+ }
+
+ @Override
+ protected <U> void deploy(DeploymentUnit unit, DeploymentVisitor<U> visitor) throws DeploymentException
+ {
+ // I only want a single attachment deployed
+
+ U deployment = unit.getAttachment(attachmentName, visitor.getVisitorType());
+ try
+ {
+ visitor.deploy(unit, deployment);
+ }
+ catch(Throwable t)
+ {
+ throw DeploymentException.rethrowAsDeploymentException("Error deploying: " + unit.getName(), t);
+ }
+ }
+
+ @Override
+ protected <U> void undeploy(DeploymentUnit unit, DeploymentVisitor<U> visitor)
+ {
+ if(visitor == null)
+ return;
+
+ // I only want a single attachment undeployed
+
+ U deployment = unit.getAttachment(attachmentName, visitor.getVisitorType());
+ visitor.undeploy(unit, deployment);
+ }
+}
Copied: projects/ejb3/tags/jboss-ejb3-deployers-1.1.3/src/test/java/org (from rev 105001, projects/ejb3/trunk/deployers/src/test/java/org)
More information about the jboss-cvs-commits
mailing list