[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: beanfactory extensions
alesj
do-not-reply at jboss.com
Wed Mar 19 17:08:35 EDT 2008
"scott.stark at jboss.org" wrote :
| The only missing piece right now is not being able to set a factoryClass on a beanfactory.
|
I can hack this pretty fast.
As long as it's approved. :-)
"scott.stark at jboss.org" wrote :
| The BeanContainer is only acting as a wrapper around the PooledFactoryType to expose the createBean method as a property. Arguably this can be dropped in factory of a factory injection notion that would call createBean() to obtain the injected value?
|
You already have this. ;-)
| <bean name="BeanUser#2" class="org.jboss.test.kernel.deployment.support.container.BeanUser">
| <property name="bean1"><value-factory bean="PooledFactoryType1" method="createBean" /></property>
| <property name="bean2"><value-factory bean="PooledFactoryType2" method="createBean"/></property>
| </bean>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4137906#4137906
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4137906
More information about the jboss-dev-forums
mailing list