[jboss-cvs] JBossAS SVN: r102084 - in projects/metadata/ear/trunk: src/main/java/org/jboss/metadata/ear/spec and 1 other directory.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Mar 8 15:51:03 EST 2010
Author: bstansberry at jboss.com
Date: 2010-03-08 15:51:02 -0500 (Mon, 08 Mar 2010)
New Revision: 102084
Modified:
projects/metadata/ear/trunk/pom.xml
projects/metadata/ear/trunk/src/main/java/org/jboss/metadata/ear/spec/ModuleMetaData.java
Log:
[JBMETA-265] EE 6 module name concept in ear metadata
Modified: projects/metadata/ear/trunk/pom.xml
===================================================================
--- projects/metadata/ear/trunk/pom.xml 2010-03-08 20:04:19 UTC (rev 102083)
+++ projects/metadata/ear/trunk/pom.xml 2010-03-08 20:51:02 UTC (rev 102084)
@@ -94,13 +94,13 @@
<dependency>
<groupId>org.jboss.metadata</groupId>
<artifactId>jboss-metadata-common</artifactId>
- <version>2.0.0-alpha-10</version>
+ <version>2.0.0.Alpha14</version>
</dependency>
<dependency>
<groupId>org.jboss.metadata</groupId>
<artifactId>jboss-metadata-common</artifactId>
- <version>2.0.0-alpha-10</version>
+ <version>2.0.0.Alpha14</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
Modified: projects/metadata/ear/trunk/src/main/java/org/jboss/metadata/ear/spec/ModuleMetaData.java
===================================================================
--- projects/metadata/ear/trunk/src/main/java/org/jboss/metadata/ear/spec/ModuleMetaData.java 2010-03-08 20:04:19 UTC (rev 102083)
+++ projects/metadata/ear/trunk/src/main/java/org/jboss/metadata/ear/spec/ModuleMetaData.java 2010-03-08 20:51:02 UTC (rev 102084)
@@ -51,6 +51,7 @@
private static final long serialVersionUID = 1;
private AbstractModule module;
private String altDD;
+ private String uniqueName;
public enum ModuleType {Connector, Client, Ejb, Service, Web};
@@ -101,4 +102,37 @@
type = ModuleType.Service;
return type;
}
+
+ /**
+ * Gets the unique name for this module, as assigned by a deployer in accordance
+ * with the EE 6 spec, Section EE.8.1.1. This value is not intended to be
+ * set via any deployment descriptor. See also
+ * https://jira.jboss.org/jira/browse/JBAS-7644
+ *
+ * @return the unique name of this module, distinct from the name of any
+ * other module associated with the same application, or
+ * <code>null</code> if the deployment processing logic has not
+ * assigned a unique name.
+ */
+ public String getUniqueName()
+ {
+ return uniqueName;
+ }
+
+ /**
+ * Sets the unique name for this module, as assigned by a deployer in accordance
+ * with the EE 6 spec, Section EE.8.1.1. This value is not intended to be
+ * set via any deployment descriptor. See also
+ * https://jira.jboss.org/jira/browse/JBAS-7644
+ *
+ * param uniqueName the unique name of this module, distinct from the name of any
+ * other module associated with the same application
+ */
+ @XmlTransient
+ public void setUniqueName(String uniqueName)
+ {
+ this.uniqueName = uniqueName;
+ }
+
+
}
More information about the jboss-cvs-commits
mailing list