JBoss Community

Is it possible to add classloader root with wildcard pattern?

reply from Zemian Deng in JBoss Microcontainer - View the full discussion

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

Start a new discussion in JBoss Microcontainer at Community