By popular request I have implemented factory-bean/factory-method
support for ColdSpring. Currently this is in bleeding edge CVS area
only. This allows ColdSpring to work with your own custom factories
either fo legacy reasons, or to support external factories like
Reactor.

Here is an example of how would use this new feature with Reactor.

<bean id="reactorFactory" class="reactor.reactorFactory">
                <constructor-arg
name="reactorConfig"><value>${reactorConfig}</value></constructor-arg>
                <property name="dsn"><value>${dsn}</value></property>
        </bean>

<bean id="playerDAO"
                        factory-bean="reactorFactory" 
factory-method="createDAO">
                <constructor-arg 
name="name"><value>players</value></constructor-arg>           
        </bean>
        <bean id="playerGateway"
                        factory-bean="reactorFactory" 
factory-method="createGateway">
                <constructor-arg 
name="name"><value>players</value></constructor-arg>           
        </bean>
                
        <bean id="playerService" 
class="fantasyfootball.model.player.playerService" />

Hopefully we will have some news soon about the next official release.

--Kurt

Reply via email to