[jboss-user] [JBoss Microcontainer] - Is it possible to add classloader root with wildcard pattern?

Ales Justin do-not-reply at jboss.com
Mon Apr 12 09:17:28 EDT 2010

Ales Justin [http://community.jboss.org/people/alesj] replied to the discussion

"Is it possible to add classloader root with wildcard pattern?"

To view the discussion, visit: http://community.jboss.org/message/536890#536890

> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100412/a1fd445d/attachment.html 

More information about the jboss-user mailing list