Community

How can I disable bean lifecycles per entire descriptor?

reply from Ales Justin in JBoss Microcontainer - View the full discussion
Would I need to programmatically disable this inside the BeanMetaDataFactory instance's implementation (like in ThreadsMetatData.java),

Yes, programmatically. But this would/should be trivial.

 

e.g. if you take the grouping approach, your impl would already be provided with BeanMetaData instances.

All you would need to do is wrap it with such code:

 

BeanMetaData bmd = ...;
BeanMetaDataBuilder builder = BeanMetaDataBuilder.create(bmd);
builder.ignoreCreate(); // or which ever lifecycle state you wann ignore

Reply to this message by going to Community

Start a new discussion in JBoss Microcontainer at Community