[jboss-dev] Deployment chains

Kabir Khan kabir.khan at jboss.com
Tue Oct 7 11:56:07 EDT 2008


On 3 Oct 2008, at 16:17, Adrian Brock wrote:

> On Fri, 2008-10-03 at 16:42 +0200, Adrian Brock wrote:
>> 2) AOP ClassLoading
>>
>> A similar criticism applies for the AOPClassLoaderDeployer
>> This has no chain definition at all? Only a relative order based
>> on the main classloader deployer.
>>
>> Again this is brittle to a refactoring of how the classloader  
>> deployer
>> works.
>
> https://jira.jboss.org/jira/browse/JBDEPLOY-96
>
> Kabir, can you modify your deployer to specify
> java.lang.ClassLoader as an input instead of using the relative
> ordering.
I have tried to do the following

     public AOPClassLoaderDeployer(int xmlRelativeOrder)
     {
        setStage(DeploymentStages.CLASSLOADER);
-      //This needs to come after the classloader deployer
-      setRelativeOrder(xmlRelativeOrder + 1);
+
+      //This makes it come after the ClassLoaderDeployer
+      setInput(ClassLoader.class);
     }

but now it looks like deployer is not triggered at all. Is there  
anything else I need to do?

> Also this deployer says it needs a VFS deployment.
> Other than the names used within AOP;
> ScopedVFSClassLoaderDomain
> VFSClassLoaderDomainRegistry
> I don't see any dependency on the VFS api?
Fixed
>
>
> It might have done in the past until we refactored the
> way in the memory url part of the classpath is done?
>
> Finally, this still hasn't been updated to understand
> how subdeployment classloaders work. It should be asking
> whether the (sub-)deployment has an
> org.jboss.classloading.spi.dependency.Module
> attachment and hence its own classloader.

Just to be clear, can there be arbitrary levels of classloaders within  
a deployment's sub-deployments now?

>
>
> Even the old code which has some hardwiring for JBossWebMetaData
> looks broken since it only unregisters top level deployment
> classloaders  in undeploy() ?
> -- 
> xxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Adrian Brock
> Chief Scientist
> JBoss, a division of Red Hat
> xxxxxxxxxxxxxxxxxxxxxxxxxxxx
>
> _______________________________________________
> jboss-development mailing list
> jboss-development at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-development




More information about the jboss-development mailing list