User: cgjung Date: 01/05/28 09:16:10 Modified: src/main/org/jboss/deployment/scope ScopedURLClassLoader.java J2eeGlobalScopeDeployer.java Log: added onDeploy action of URLClassLoader that is called AFTER all dependent ears have been loaded, but BEFORE any application module is setup. Revision Changes Path 1.6 +8 -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.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- ScopedURLClassLoader.java 2001/05/25 12:05:09 1.5 +++ ScopedURLClassLoader.java 2001/05/28 16:16:10 1.6 @@ -104,12 +104,20 @@ return result; } + /** what happens on deploy, could be overridden to setup down meta-data and such + * @throws J2eeDeploymentException if this stage of deployment fails for some reason + */ + protected void onDeploy() 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 */ protected void onUndeploy() throws J2eeDeploymentException { // nothing } + /** returns a set of relative urls in string spec that * point to applications to which this application 1.6 +3 -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.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- J2eeGlobalScopeDeployer.java 2001/05/23 14:19:04 1.5 +++ J2eeGlobalScopeDeployer.java 2001/05/28 16:16:10 1.6 @@ -290,6 +290,9 @@ Thread.currentThread().setContextClassLoader(source); try{ + // enable the scoped classloader to setup some + // metadata or such before entering application modules + source.onDeploy(); // redirect all modules to the responsible deployers startModules(_d,source,oldCl); // and report successful deployment to collector _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development