Glad to see that the list is still active, as this is a great tool
that is still relavent and useful. I have been reaping the benefits
of this framework in my latest project and am generally happy with
it's features.
I did run into a snag when I started experimenting with an IoC
(Inversion of Control) framework other than ColdSpring. The ColdBox
framework comes "bundled" with the LightWire IoC. You can use the
same XML configuration file to switch between them. All of the
objects are configured well but Reactor breaks when it is invoked.
Specifically, the 'setBeanFactory' method is hard-coded to expect a
ColdSpring object.
My recommended fix to improve compatibility beyond ColdSpring is to
loosen the type checking for the argument. My code changes, which are
working well for both IoC framewoks, is included below (diff format).
I hope you will consider committing my fix.
Regards,
Jay
Index: reactorFactory.cfc
===================================================================
--- reactorFactory.cfc (revision 465)
+++ reactorFactory.cfc (working copy)
@@ -121,7 +121,7 @@
<!--- BeanFactory --->
<cffunction name="setBeanFactory" access="public" output="false"
returntype="void" hint="I set a BeanFactory (Spring-interfaced IoC
container) to inject into all created objects)." >
- <cfargument name="beanFactory" type="coldspring.beans.beanFactory"
_type="coldspring.beans.beanFactory" required="true" />
+ <cfargument name="beanFactory" type="any"
_type="coldspring.beans.beanFactory" required="true" />
<cfset variables.BeanFactory = arguments.beanFactory />
</cffunction>
<cffunction name="getBeanFactory" access="private" output="false"
returntype="any" _returntype="any">
Mark?!
> --
> You received this message because you are subscribed to the Google Groups "Reactor" group.
> To post to this group, send email to reacto...@googlegroups.com.
> To unsubscribe from this group, send email to reactor-user...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/reactor-users?hl=en.
>
>
Regards
Mark Drew
Mark Drew
Railo Technologies UK
Professional Open Source
skype: mark_railo
ma...@getrailo.com
+44 7971 85 22 96
www.getrailo.com
Mark Drew
Railo Technologies UK
Professional Open Source
skype: mark_railo
ma...@getrailo.com
+44 7971 85 22 96
www.getrailo.com