[jboss-cvs] JBossAS SVN: r82100 - in projects/ejb3/trunk: common/src/main/java/org/jboss/ejb3/common/deployers and 2 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Sun Dec 7 20:50:28 EST 2008
Author: ALRubinger
Date: 2008-12-07 20:50:27 -0500 (Sun, 07 Dec 2008)
New Revision: 82100
Added:
projects/ejb3/trunk/common/src/main/java/org/jboss/ejb3/common/deployers/
projects/ejb3/trunk/common/src/main/java/org/jboss/ejb3/common/deployers/spi/
projects/ejb3/trunk/common/src/main/java/org/jboss/ejb3/common/deployers/spi/AttachmentNames.java
Modified:
projects/ejb3/trunk/deployers/src/main/java/org/jboss/ejb3/deployers/Ejb3MetadataProcessingDeployer.java
Log:
[EJBTHREE-1615] Provide a contract for deployers input and output
Added: projects/ejb3/trunk/common/src/main/java/org/jboss/ejb3/common/deployers/spi/AttachmentNames.java
===================================================================
--- projects/ejb3/trunk/common/src/main/java/org/jboss/ejb3/common/deployers/spi/AttachmentNames.java (rev 0)
+++ projects/ejb3/trunk/common/src/main/java/org/jboss/ejb3/common/deployers/spi/AttachmentNames.java 2008-12-08 01:50:27 UTC (rev 82100)
@@ -0,0 +1,55 @@
+/*
+ * 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.common.deployers.spi;
+
+import org.jboss.metadata.ejb.jboss.JBossMetaData;
+
+/**
+ * AttachmentNames
+ *
+ * Contains DeploymentUnit attachment names as a contract
+ *
+ * @author <a href="mailto:andrew.rubinger at jboss.org">ALR</a>
+ * @version $Revision: $
+ */
+public interface AttachmentNames
+{
+ /*
+ * Attachment names
+ */
+
+ //TODO
+ /*
+ * This is reflected in the public static field:
+ * public static final String EJB_MERGED_ATTACHMENT_NAME = "merged."+JBossMetaData.class.getName();
+ * ...of the MergedJBossMetaDataDeployer, which is not currently visible from here
+ */
+ /**
+ * Fully-merged JBossMetaData
+ */
+ String MERGED_METADATA = "merged." + JBossMetaData.class.getName();
+
+ /**
+ * Post-merge, processed JBossMetaData
+ */
+ String PROCESSED_METADATA = "processed." + JBossMetaData.class.getName();
+}
Modified: projects/ejb3/trunk/deployers/src/main/java/org/jboss/ejb3/deployers/Ejb3MetadataProcessingDeployer.java
===================================================================
--- projects/ejb3/trunk/deployers/src/main/java/org/jboss/ejb3/deployers/Ejb3MetadataProcessingDeployer.java 2008-12-08 01:37:24 UTC (rev 82099)
+++ projects/ejb3/trunk/deployers/src/main/java/org/jboss/ejb3/deployers/Ejb3MetadataProcessingDeployer.java 2008-12-08 01:50:27 UTC (rev 82100)
@@ -25,6 +25,7 @@
import org.jboss.deployers.spi.deployer.DeploymentStages;
import org.jboss.deployers.spi.deployer.helpers.AbstractDeployer;
import org.jboss.deployers.structure.spi.DeploymentUnit;
+import org.jboss.ejb3.common.deployers.spi.AttachmentNames;
import org.jboss.ejb3.common.metadata.MetadataUtil;
import org.jboss.logging.Logger;
import org.jboss.metadata.ejb.jboss.JBossMetaData;
@@ -50,21 +51,15 @@
private static final Logger log = Logger.getLogger(Ejb3MetadataProcessingDeployer.class);
- //TODO
- /*
- * This is reflected in the public static field:
- * public static final String EJB_MERGED_ATTACHMENT_NAME = "merged."+JBossMetaData.class.getName();
- * ...of the MergedJBossMetaDataDeployer, which is not currently visible from here
- */
/**
* Deployer Input, set to merged metadata
*/
- private static final String INPUT = "merged." + JBossMetaData.class.getName();
+ private static final String INPUT = AttachmentNames.MERGED_METADATA;
/**
* Deployer Output, the Processed metadata
*/
- public static final String OUTPUT = "processed." + JBossMetaData.class.getName();
+ public static final String OUTPUT = AttachmentNames.PROCESSED_METADATA;
// ------------------------------------------------------------------------------||
// Constructor ------------------------------------------------------------------||
More information about the jboss-cvs-commits
mailing list