The Dopefly Tech Blog

<< The Dopefly Tech Blog Main page

Quick Fusebox 5 lexicons for ColdSpring and Reactor

posted under category: Fusebox on August 11, 2006 at 1:00 am by MrNate

With a little time on a spare project (or spare time on a little project? it's 2:am), I hammered out some really quickie basic lexicon tags for Coldspring and Reactor.

Download my quick ColdSpring lexicon
Consists of an instantiate tag (call in your appinit), and a get tag (call from anywhere). Hers's a quick sample:

<circuit xmlns:cs="coldspring/">
<cs:initialize beanDefinitionFile="#expandPath('/config/ColdSpring.xml')#"/>
<cs:get bean="GenericCollection" returnvariable="variables.myCollection"/>

Download my quick Reactor lexicon
Consists of an initialize tag and a tags to do all the basic functions. Here's a quick sample:

<circuit xmlns:reactor="reactor/">
<reactor:initialize configuration="#expandPath('/config/Reactor.xml')#"/>
<reactor:record alias="User" returnvariable="variables.userRecord" />
<reactor:gateway alias="User" returnvariable="variables.userGateway" />

I realize they're fairly one-dimensional, not really working together in any way, but they're nice shortcut tags and a good starting place that I hope will help others.

UPDATE: 8/14/06 1:p - Qasim Rasheed, who knows a fair amount more about ColdSpring than I, made an update to the ColdSpring tags. I have updated the zip file, so feel free to download again. Now it supports multiple factories and sending the default properties on creation.

Too old to comment!
On Mar 11, 2007 at 7:00 AM MINDTRICK (sigepjedi sends love to gmail.com) said:
is there anything that better explains how to use these lexicons?

A dummies guide of sorts?

On Mar 5, 2008 at 6:00 AM RobG (snarfblat, who eats yahoo.com) said:
I would love a small guide on how to set this up as well!

On Apr 10, 2008 at 8:00 AM Nathan Strutz (http://www.dopefly.com/) said:
Unfortunately, I don't think there's a lot out there. I'm not sure how to better explain it... hmmm...

Yeah I could go through like, step-by-step, from downloading to setting the code up, to using it in real life.

Ok... it's on my ever-growing list of things to blog. I keep a google doc of my future blog entries - it's over 10 pages now :D

I'll get it out to you guys... ehh, sometime this year.

On Feb 13, 2011 at 6:00 AM Erik Vold (http://erikvold.com/) said:
"I'll get it out to you guys... ehh, sometime this year."

Any links?

On Feb 13, 2011 at 6:00 AM Nathan Strutz (http://www.dopefly.com/) said:
Yeah, no.

Actually these tags were included in Fusebox 5.5, and documented with Fusebox itself. You just have to copy the circuit xmlns attribute above, then use it like I do here.

Actually, I have a pretty big fusebox project that uses ColdSpring, but not the built-in taglib. It works fine, I just call application.beanFactory.getBean() etc.

I never really did get around to blogging the rest of this subject because (a) I lost interest, (b) Fusebox incorporated my tags and upgraded the lexicon support a bit, and also documented the feature better, and (c) Fusebox eventually died, I lost interest and would encourage you to look into other, better, newer frameworks. FW/1, Coldbox and CFWheels seem to bee the cool things now, and don't forget Mach-II and Model-Glue, still forging ahead. Fusebox, in the sense of activity, support and buzz, is dead.

On Feb 14, 2011 at 6:00 AM Erik Vold (http://erikvold.com/) said:
What's the license on these files btw?
Too old to comment!