Community

How can I disable bean lifecycles per entire descriptor?

reply from Ales Justin in JBoss Microcontainer - View the full discussion
but would it possible to ignored all beans under an entire descriptor deployment instead of individual bean?

Unfortunately no.

 

But you can easily write your own xml element for either bean or group of beans,

which would then take existing BeanMetaData instance(s) and add this ignore rule.

 

e.g.

 

<deployment xmlns="urn:jboss:bean-deployer:2.0">

 

   <my-group xmlns="urn:foo:bar:1.0">

 

       ... plain MC beans

 

   </my-group>

 

   <!-- OR custom bean -->

 

   <my-bean xmlns="urn:foo:bar:1.0" name="tralala" class="..." />

 

</deployment>

 

where then metadata class mapping to those new elements must implement BeanMetaDataFactory.

 

Perhaps check DML's ThreadMetaData project on how this is done:

* http://anonsvn.jboss.org/repos/jbossas/projects/jboss-threads/trunk/jboss-threads-metadata/

Reply to this message by going to Community

Start a new discussion in JBoss Microcontainer at Community