User: cgjung
Date: 01/07/18 09:46:17
Modified: src/main/org/jboss/deployment/scope
J2eeGlobalScopeDeployer.java
ScopedURLClassLoader.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.12 +4 -0
jboss/src/main/org/jboss/deployment/scope/J2eeGlobalScopeDeployer.java
Index: J2eeGlobalScopeDeployer.java
===================================================================
RCS file:
/cvsroot/jboss/jboss/src/main/org/jboss/deployment/scope/J2eeGlobalScopeDeployer.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- J2eeGlobalScopeDeployer.java 2001/07/18 12:02:02 1.11
+++ J2eeGlobalScopeDeployer.java 2001/07/18 16:46:17 1.12
@@ -341,6 +341,10 @@
source.onDeploy();
// redirect all modules to the responsible deployers
startModules(_d,source,oldCl);
+ // enabled the scoped classloader to run some
+ // initialization logic after the application modules
+ // have been setup
+ source.afterStartup();
} catch(Exception e) {
stopApplication(_d,new java.util.ArrayList(),null,scope,lCollector);
throw new J2eeDeploymentException("could not deploy "+_d.getName());
1.7 +7 -0
jboss/src/main/org/jboss/deployment/scope/ScopedURLClassLoader.java
Index: ScopedURLClassLoader.java
===================================================================
RCS file:
/cvsroot/jboss/jboss/src/main/org/jboss/deployment/scope/ScopedURLClassLoader.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- ScopedURLClassLoader.java 2001/05/28 16:16:10 1.6
+++ ScopedURLClassLoader.java 2001/07/18 16:46:17 1.7
@@ -111,6 +111,13 @@
// nothing
}
+ /** what happens after startup of application modules, could be overridden to
run initial logic
+ * @throws J2eeDeploymentException if this stage of deployment fails for some
reason
+ */
+ protected void afterStartup() throws J2eeDeploymentException {
+ // nothing
+ }
+
/** what happens on undeploy, could be overridden to tear down meta-data and
such
* @throws J2eeDeploymentException if this last stage of undeployment fails
for some reason
*/
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development