Community

Is it possible to add classloader root with wildcard pattern?

reply from Ales Justin in JBoss Microcontainer - View the full discussion
When writing deployment <classloader>, is it possible to specify a wildcard parttern like "<lib>/myapp/lib/*.jar</lib>" instead of single entry at time with <root>?

Again, not out of the box, but it's only two classes that you need to extend.

 

New module class (X), so you have your own determineVFSRoots() impl -- which understands wildcard:

* override VFSClassLoaderPolicyModule

 

And new XML mapped VFSClassLoaderFactory to override the getModuleClass -- returning X.

* custom <classloader> element

Reply to this message by going to Community

Start a new discussion in JBoss Microcontainer at Community