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 by Nathan

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.

Nathan is a software developer at The Boeing Company in Charleston, SC. He is essentially a big programming nerd. Really, you could say that makes him a nerd among nerds. Aside from making software for the web, he plays with tech toys and likes to think about programming's big picture while speaking at conferences and generally impressing people with massive nerdiness and straight-faced sarcastic humor. Nathan got his programming start writing batch files in DOS. It should go without saying, but these thought and opinions have nothing to do with Boeing in any way.
This blog is also available as an RSS 2.0 feed. Click your heels together and click here to contact Nathan.