Critical Error in LightWire - Patch Available
Thanks Martin for catching the critical lack of a var scoping on a couple of variables in LightWire. While I've been using the unpatched version on over 40 projects without issue, under load (creating lots of transient objects) this could be a real problem, so please update your LightWire.cfc and BaseConfigObject.cfc either from the svn repo (or in svn go to http://svn.riaforge.org/lightwire) or by downloading the latest zip file.
The ColdBox team are aware of the issue, so you may see a separate patch directly from them. Both versions include the autowiring code added by Luis, so you should be able to use either version with Coldbox.



We are just starting to work with LightWire. We are curious why most of the arguments in BaseConfigObject.cfc are not scoped. Is there a particular reason for this?
Right now I alternate :-)
I would like to start using Lightwire in our home grown framework. I currently have a lighter version which is currently built into my framework but believe it is probably a better idea to use a more standard community driven technology for these purposes. Thanks to Kevan Stannard (creator of NSTree) for bringing LightWire to my attention a few months ago.
I want to connect to LightWire via a plug-in architecture which allows us more flexibility to switch DI Engines from project to project depending on the requirements. Considering I am not very familiar with LightWire, Could you please offer some direction? Do you have an API document? Or what in your opinion is the cleanest and simplest way to bridge the two (LightWire and homegrown framework) quickly.
Please feel free to send me a direct e-mail.
h.grant [AT] hgitc [DOT] com
Thanks you.
You might want to have a look at what Luis Majano and the team have done with ColdBox. They have a plug in architecture for Dependency Injection that allows for either ColdSpring and LightWire to be used. Their code in open source and might give you a good idea about how to write something that would allow you to plug and play between multiple DI engines.
Thanks Peter.