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

Zemian Deng do-not-reply at jboss.com
Mon Jul 12 22:17:20 EDT 2010


Zemian Deng [http://community.jboss.org/people/saltnlight5] replied to the discussion

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

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

--------------------------------------------------------------
Thanks for replying,

I said "hard", I don't mean there a lot of code I need to handle. I meant that if the class would provide a setter method for vfsRoots, then subcass won't need to cut/paste to repeat code. It not a big deal, and I get that part.


What I still not clear on is what is the proper way for me to extend n provide a new classloader element that will take my wildcard expression for a depoyment xml. So if I were to extends it like this:

<pattern-classloader bean="my-cl">
     <root filename-re-pattern=".*\.jar">file:///opt/mylib</root>
</pattern-classloader>


Do I need to write a custom deployer to create the BeanMetaData?

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/552240#552240]

Start a new discussion in JBoss Microcontainer at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2114]

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


More information about the jboss-user mailing list