[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Field injection tests
scott.stark@jboss.org
do-not-reply at jboss.com
Thu Mar 20 17:09:20 EDT 2008
Its the xml I showed in this beanfactory extensions thread:
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=132158
I checked in a test org.jboss.test.kernel.deployment.support.container.TestPooledBeanFactory with a simple bounded queue pool that is prefilled on first use.
The disconnect between the xml and any current psuedo code is that there is a one to one association between the bean metadata/xml and the instances upon which injection happens.
To exercise the pool exhaustion scenario, you have to create multiple instances of Bean2Type, injecting multiple instances of Bean1Type. This behavior is not part of the current mc core. The test needs to wire things up at the metadata level and then call the org.jboss.test.kernel.deployment.support.container.BeanContainer.getBean() multiple times to create the Bean2Type instances which should have new Bean1Type instances injected.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4138171#4138171
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4138171
More information about the jboss-dev-forums
mailing list