User: cgjung
Date: 01/07/18 09:46:16
Modified: src/main/org/jboss/deployment Deployment.java
Log:
Deployment opened up for subclassing (e.g., to re-introduce pure directory
deployments via the J2eeDeployer). extended scoped deployment procedure with an
afterStartup hook.
Revision Changes Path
1.10 +44 -45 jboss/src/main/org/jboss/deployment/Deployment.java
Index: Deployment.java
===================================================================
RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/deployment/Deployment.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- Deployment.java 2001/07/18 12:02:02 1.9
+++ Deployment.java 2001/07/18 16:46:16 1.10
@@ -18,16 +18,16 @@
/** Represents a J2EE application or module (EJB.jar, Web.war or App.ear). <br>
*
* @author <a href="mailto:[EMAIL PROTECTED]">Daniel Schulze</a>
-* @version $Revision: 1.9 $
+* @version $Revision: 1.10 $
*/
public class Deployment
implements java.io.Serializable
{
- /** the apploications name */
+ /** the apploications name */
protected String name;
- /** the date this deployment was made */
- protected Date date;
+ /** the date this deployment was made */
+ protected Date date;
/** the local position of the apps root directory */
protected URL localUrl;
@@ -55,7 +55,7 @@
/** Creates a new Deployment object. */
protected Deployment ()
{
- date = new Date();
+ date = new Date();
ejbModules = new Vector ();
webModules = new Vector ();
@@ -120,52 +120,51 @@
}
/** returns all files (URLs) that are needed to run this deployment properly */
- public Vector getAllFiles()
+ public Vector getAllFiles() {
+ // the common libs
+ Vector result = new Vector();
+ Iterator it = commonUrls.iterator();
+ while (it.hasNext())
{
- // the common libs
- Vector result = new Vector();
- Iterator it = commonUrls.iterator();
- while (it.hasNext())
- {
- String s = ((URL)it.next()).getFile();
- result.add(s.substring(s.lastIndexOf("/")+1));
- }
+ String s = ((URL)it.next()).getFile();
+ result.add(s.substring(s.lastIndexOf("/")+1));
+ }
- // the ejb packages
- it = ejbModules.iterator();
- while (it.hasNext())
- {
- String s =
((URL)((Module)it.next()).localUrls.firstElement()).getFile();
- result.add(s.substring(s.lastIndexOf("/")+1));
- }
+ // the ejb packages
+ it = ejbModules.iterator();
+ while (it.hasNext())
+ {
+ String s =
((URL)((Module)it.next()).localUrls.firstElement()).getFile();
+ result.add(s.substring(s.lastIndexOf("/")+1));
+ }
- // the web packages
- it = webModules.iterator();
- while (it.hasNext())
- {
- String s =
((URL)((Module)it.next()).localUrls.firstElement()).getFile();
- result.add(s.substring(s.lastIndexOf("/")+1));
- }
-
- // and the config file
- result.add(J2eeDeployer.CONFIG);
-
- /*
- it = result.iterator();
- while (it.hasNext())
- System.out.println ("contained file: "+it.next());
- */
-
- return result;
+ // the web packages
+ it = webModules.iterator();
+ while (it.hasNext())
+ {
+ String s =
((URL)((Module)it.next()).localUrls.firstElement()).getFile();
+ result.add(s.substring(s.lastIndexOf("/")+1));
}
+ // and the config file
+ result.add(J2eeDeployer.CONFIG);
+
+ /*
+ it = result.iterator();
+ while (it.hasNext())
+ System.out.println ("contained file: "+it.next());
+ */
+ return result;
+ }
+
+
/** Represents a J2ee module. */
public class Module
implements java.io.Serializable
{
- /** a short name for the module */
- String name;
+ /** a short name for the module */
+ protected String name;
/** a collection of urls that make this module. <br>
actually there is only one url for the modules jar file or
@@ -173,12 +172,12 @@
to allow alternative descriptors, the base directories of this alternative
descriptors can be put here before the real module url, so that these where
found first */
- Vector localUrls;
+ protected Vector localUrls;
/** the web root context in case of war file */
- String webContext;
+ protected String webContext;
- Module ()
+ protected Module ()
{
localUrls = new Vector ();
}
@@ -199,7 +198,7 @@
return name;
}
- /**
+ /**
* returns the web context
* @author cgjung
*/
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development