The optimal target would be either to allow for multiple filters directly
You just need to javabean> the right filter instance. ;-)
e.g. <-- pseudo code -- I need to check this into more details (it's been a while since I wrote this javabean' stuff :) )
<before-filter>
<javabean xmlns="urn:jboss:javabean:2.0" class="org.jboss.classloader.plugins.filter.CombiningClassFilter">
<constructor>
<parameter>
<!-- some other filter missing here + some xml syntax -->
<javabean xmlns="urn:jboss:javabean:2.0" class="org.jboss.classloader.plugins.filter.NegatingClassFilter">
<constructor>
<parameter>
<javabean xmlns="urn:jboss:javabean:2.0" class="org.jboss.classloader.spi.filter.RecursivePackageClassFilter">
<constructor>
<parameter>org.hibernate</parameter>
</constructor>
</javabean>
</parameter>
</constructor>
</javabean>
</parameter>
</constructor>
</javabean>
</before-filter>