Hello all,

I am very new to the spring framework, and am currently doing an eval for my company. One of the things that I need to prove out is loading the bean config information from a Database. We have a pre built API that provides application configuration information, but I have no idea how to load a bean config manually. Any sussgestions or hints on how to accomplish this?

For example, how can I get the equivalent of this:

<bean id="springappController" class="web.SpringappController">
<property name="productManager">
<ref bean="prodMan"/>
</property>
</bean>

<bean id="prodMan" class="bus.ProductManager">
<property name="products">
<list>
<ref bean="product1"/>
<ref bean="product2"/>
<ref bean="product3"/>
</list>
</property>
</bean>

by executing code instead of having an XML file.

Thanks!