[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
[http://community.jboss.org/message/536928#536928]

Start a new discussion in JBoss Microcontainer at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2114]

-------------- 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