[jboss-dev-forums] [Design of POJO Server] - Adding new deployers

kabir.khan@jboss.com do-not-reply at jboss.com
Wed Oct 4 19:01:47 EDT 2006


I've run into a problem with the deployers. The .aop archives are not recognized by the JarStructure unless deployed unpacked. Hard-coding this as one of the jarSuffixes in JarUtils would work, but is hacky since this option won't be available to people wanting to create their own deployers for things with unknown suffixes.

I've tried adding some start/stop methods to my AspectDeployer to add/remove the .aop suffix to JarUtils, but this doesn't work since the deployer/aspect-deployers-beans.xml file is read after the VFSDeployemetScanner adds the deployments. In other words FileSystemContext.createVirtualFileHandler() is called for all the deploy/xxx.aop archives BEFORE the AspectDeployer has a chance to add the .aop suffix to JarUtils. FileSystemContext.createVirtualFileHandler() uses JarUtils to check if it should create a JarHandler or a VirtualFileHandler for the context, so for .aop files we always end up with a FileHandler when what we really want is a JARHandler.


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976190#3976190

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976190



More information about the jboss-dev-forums mailing list