anchor.diff:  		</cfif>
   		
   		<!--- Put a bean factory reference into the application or server scopes if required --->
  -		<cfif placeFactoryInApplicationScope>
  +		<cfif getParameter("placeFactoryInApplicationScope", false)>
   			<cfset bfUtils.setNamedFactory("application", factoryKey, bf) />
   		</cfif>
  -		<cfif placeFactoryInServerScope>
  -			<cfset bfUtils.setNamedFactory('server', factoryKey, bf) />
  -		</cfif>
  -		
  +		<cfif getParameter("placeFactoryInServerScope", false)>
  +			<cfset bfUtils.setNamedFactory("server", factoryKey, bf) />
  +		</cfif>
  +		
  +		<!--- Resolve Mach-II dependences if required --->
  +		<cfif getParameter("resolveMachIIDependencies", false)>
  +			<cfset resolveDependencies() />
  +		</cfif>
  +		
  +		<!--- Place bean references into the Mach-II properties if required --->
  +		<cfif isParameterDefined("beansToMachIIProperties")>
  +			<cfif IsStruct(getParameter("beansToMachIIProperties"))>
  +				<cfset referenceBeansToMachIIProperties(getParameter("beansToMachIIProperties")) />
  +			<cfelse>
  +				<cfthrow type="ColdspringProperty.beansToMachIIPropertiesInvalidType"
  +					message="The value of a parameter named 'beansToMachIIProperties' must contain a struct." />
  +			</cfif>
  +		</cfif>
  +				
   		<!--- Build the config files and hash --->
   		<cfset setConfigFilePaths(buildConfigFilePaths(serviceDefXmlLocation)) />
   		<cfset setLastReloadHash(getConfigFileReloadHash()) />
   		<cfset setLastReloadDatetime(Now()) />
  -		
  -		<!--- Resolve Mach-II dependences if required --->
  -		<cfif getParameter("resolveMachIIDependencies", false)>
  -			<cfset resolveDependencies() />
  -		</cfif>
  -		
  -		<!--- Place bean references into the Mach-II properties if required --->
  -		<cfif IsStruct(getParameter("beansToMachIIProperties"))>
  -			<cfset referenceBeansToMachIIProperties(getParameter("beansToMachIIProperties")) />
  -		</cfif>
   	</cffunction>
   	
   	<cffunction name="shouldReloadConfig" access="public" returntype="boolean" output="false"
  
positive.code: 		
  		<!--- Locating and storing bean factory (from properties/params) --->
  		<cfset var bfUtils = CreateObject("component", "coldspring.beans.util.BeanFactoryUtils").init() />
  		<cfset var parentBeanFactoryKey = getParameter("parentBeanFactoryKey", "") />
  		
  		<cfset var localBeanFactoryKey = getParameter("beanFactoryPropertyName", bfUtils.DEFAULT_FACTORY_KEY) />
  
  		<cfset var placeFactoryInApplicationScope = getParameter("placeFactoryInApplicationScope", false) />
  		<cfset var placeFactoryInServerScope = getParameter("placeFactoryInServerScope", false) />
  		
  		<cfset var parentBeanFactoryScope = getParameter("parentBeanFactoryScope", "application") />
  		
  		<cfif isParameterDefined("configFile")>
  			<cfset serviceDefXmlLocation = getParameter("configFile") />
  		<cfelse>
  
negative.code: See the License for the specific language governing permissions and
  limitations under the License.
  		
  $Id: ColdspringProperty.cfc,v 1.6 2007/08/29 22:43:49 pjf Exp $
  
  Description:
  A Mach-II property that provides easy ColdSpring integration with Mach-II applications.
  