[jboss-user] [JBoss Microcontainer] - How can I disable bean lifecycles per entire descriptor?

Ales Justin do-not-reply at jboss.com
Mon Apr 12 10:26:27 EDT 2010

Ales Justin [http://community.jboss.org/people/alesj] replied to the discussion

"How can I disable bean lifecycles per entire descriptor?"

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

> 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

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

More information about the jboss-user mailing list