FILE ID: /techblog/148_Quick-Fusebox-5-lexicons-for-ColdSpring-and-Reactor/ Aug 11, 2006

Quick Fusebox 5 lexicons for ColdSpring and Reactor

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.