<<!--- Set the name of the database --->>
<<cfset dbName = oMetaData.getDbName()>>
<<!--- Get the alias first table --->>
<<cfset firstTable = ListFirst(oMetaData.getLTableAliases())>>
<<cfoutput>>
<?xml version="1.0" encoding="UTF-8"?> 
<fusebox> 
<!--
Copyright 2006 Objective Internet Ltd - http://www.objectiveinternet.com

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
  <circuits>
  	<!-- There is a model, view and controller circuit for each database. -->
	<!-- Only the controller has an XML file the others are called implicitly. -->
	<circuit alias="m$$DBName$$" path="model/m$$DBName$$/" parent="" />
	<circuit alias="v$$DBName$$" path="view/v$$DBName$$/" parent="" />
	<circuit alias="$$DBName$$" path="controller/$$DBName$$/" parent="" />
	<circuit alias="udfs" path="udfs/" parent="" />
  </circuits>
  
  <parameters>
  	<parameter name="debug" value="true" />
    <parameter name="fuseactionVariable" value="fuseaction" />
    <parameter name="mode" value="development-full-load" />
    <parameter name="defaultFuseaction" value="$$dbName$$.$$firstTable$$_Listing" />
    <parameter name="precedenceFormOrUrl" value="form" />
    <parameter name="password" value="scaffold" />
    <parameter name="scriptFileDelimiter" value="cfm" />
    <parameter name="maskedFileDelimiters" value="htm,cfm,cfml,php,php4,asp,aspx" />
    <parameter name="characterEncoding" value="utf-8" />
	<parameter name="allowImplicitCircuits" value="true" />
  </parameters> 
  
  <classes>
  	<class alias="Reactor" type="component" classpath="Reactor.reactorFactory" /> 
  </classes>
  
  <globalfuseactions>
  	<appinit>
		<do action="m$$dbName$$.Initialise" />
	</appinit>
    <preprocess>
		<do action="m$$dbName$$.ReInitialise" />
    </preprocess>
    <postprocess>
    </postprocess>
  </globalfuseactions>
  
  <plugins> 
    <phase name="preProcess">
    </phase>
    <phase name="preFuseaction">
    </phase>
    <phase name="postFuseaction">
    </phase>
    <phase name="postProcess">
    </phase>
    <phase name="processError">
    </phase>
    <phase name="fuseactionException">
    </phase>
  </plugins> 
  
</fusebox>
<</cfoutput>>
