[jboss-cvs] jboss/src/main/org/jboss/deployment ...
Scott Stark
scott.stark at jboss.com
Mon Jul 24 11:59:08 EDT 2006
User: starksm
Date: 06/07/24 11:59:08
Modified: src/main/org/jboss/deployment J2eeModuleMetaData.java
Log:
JBAS-3411, add support for ear deployments without application.xml
Revision Changes Path
1.12 +27 -2 jboss/src/main/org/jboss/deployment/J2eeModuleMetaData.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: J2eeModuleMetaData.java
===================================================================
RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/deployment/J2eeModuleMetaData.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -b -r1.11 -r1.12
--- J2eeModuleMetaData.java 30 Oct 2005 00:04:00 -0000 1.11
+++ J2eeModuleMetaData.java 24 Jul 2006 15:59:08 -0000 1.12
@@ -21,7 +21,7 @@
*/
package org.jboss.deployment;
-// $Id: J2eeModuleMetaData.java,v 1.11 2005/10/30 00:04:00 starksm Exp $
+// $Id: J2eeModuleMetaData.java,v 1.12 2006/07/24 15:59:08 starksm Exp $
import org.jboss.metadata.MetaData;
@@ -32,7 +32,7 @@
*
* @author <a href="mailto:daniel.schulze at telkel.com">Daniel Schulze</a>
* @author Thomas.Diesler at jboss.org
- * @version $Revision: 1.11 $
+ * @version $Revision: 1.12 $
*/
public class J2eeModuleMetaData
extends MetaData
@@ -57,6 +57,31 @@
// Public --------------------------------------------------------
+ /**
+ * Default ctor used when populating the metadata via xml descriptors
+ */
+ public J2eeModuleMetaData()
+ {
+
+ }
+
+ /**
+ * Ctor used when populating the metadata without a descriptor
+ * @param type - one of EJB, WEB, CLIENT, CONNECTOR, SERVICE, HAR
+ * @param fileName - the module name
+ */
+ public J2eeModuleMetaData(int type, String fileName)
+ {
+ this.type = type;
+ this.fileName = fileName;
+ if( type == WEB )
+ {
+ int dot = fileName.lastIndexOf('.');
+ if( dot >= 0 )
+ webContext = fileName.substring(0, dot);
+ }
+ }
+
public boolean isEjb()
{
return (type == EJB);
More information about the jboss-cvs-commits
mailing list