Hey all (in particular, Kurt and anyone using ColdSpring) – I just pushed an update to reactor to SVN. This update
changes the init method for the reactorFactory. A few weeks ago I added a
bunch arguments to the method to set things like the dsn, password, project
name, etc. As Joe keeps reminding me, I should have favored an interface
over implementation. So, those methods are gone. The init method
now takes one argument: configuration. This can be one of three things: 1) an absolute
path to your reactor.xml file 2) a relative
path to your reactor.xml file 3) a
reactor.config.config component The first two are no change from what we have now. The
third allows for easier ColdSpring integration, which is a frequent request. I’m currently working on a new application. As a
part of it I wanted to get the reactorFactor from ColdSpring. I’m
also using the MG autowire cfc. In my beans xml file I’ve got these
two items: <bean id="ReactorFactory"
class="reactor.reactorFactory"> <constructor-arg
name="configuration"> <ref
bean="ReactorConfig" /> </constructor-arg> </bean> <bean id="ReactorConfig" class="reactor.config.config"> <constructor-arg
name="pathToConfigXml"> <value>/config/Reactor.xml.cfm</value> </constructor-arg> <property
name="project"> <value>Foobar</value> </property> <property
name="dsn"> <value>
Foobar </value> </property> <property
name="type"> <value>mssql</value> </property> <property
name="mapping"> <value>/Data</value> </property> <property
name="mode"> <value>development</value> </property> <!--
These config values are not required <property
name="username"> <value></value> </property> <property
name="password"> <value></value> </property> --> </bean> In my reactor xml I don’t have the config block at all
(it’s not needed). (However, if you don’t pass in the
reactor.config.config object you still need to provide this block.) Because I’m using the MG/CS autowirer all I need to do
to get the reactor factory is call my getReactorFactory() method. Viola! Doug |