<beans>
<!-- This is your Model-Glue configuration -->
<bean id="modelglue.modelGlueConfiguration"
class="ModelGlue.gesture.configuration.ModelGlueConfiguration">
<!-- Be sure to change these to false when you go to production! -->
<property name="reload"><value>true</value></property>
<property name="debug"><value>true</value></property>
<!-- Name of the URL variable that states which event-handler to run
-->
<property name="eventValue"><value>event</value></property>
<!-- Default event-handler -->
<property name="defaultEvent"><value>page.index</value></property>
<!-- Execute this event when the requested event is missing. Won't
work if generationEnabled=true and in development mode! -->
<property name="missingEvent"><value>page.missing</value></property>
<!-- Execute this event when an error occurs. -->
<property name="defaultExceptionHandler"><value>page.error</value></
property>
<!-- Controls reloading -->
<property name="reloadPassword"><value>true</value></property>
<property name="reloadKey"><value>init</value></property>
<!-- Where to find necessary files -->
<property name="configurationPath"><value>config/ModelGlue.xml</
value></property>
<property name="applicationMapping"><value>/
modelglueapplicationtemplate</value></property>
<property name="viewMappings"><value>/modelglueapplicationtemplate/
views</value></property>
<property name="helperMappings"><value>/modelglueapplicationtemplate/
helpers</value></property>
<!-- Generate unknown events when in development mode?
(reload=false) -->
<property name="generationEnabled"><value>false</value></property>
<!-- Set the default cache timeout in seconds -->
<property name="defaultCacheTimeout"><value>60</value></property>
<!-- Scaffolding config -->
<!-- Turning this off will disable any scaffold generation. Turning
this on requires the reload setting above to also be on.-->
<property name="rescaffold"><value>true</value></property>
<!-- Where do you want generated views to be saved to? -->
<property name="generatedViewMapping"><value>views</value></property>
<!--This directory structure should already exists. ModelGlue will
create the Scaffolds.xml file and overwrite as needed.-->
<property name="scaffoldPath"><value>config/scaffolds/Scaffolds.xml</
value></property>
<!-- What scaffold generation patterns should ModelGlue use if you do
not specify in the <scaffold type=""> attribute? .-->
<property
name="defaultScaffolds"><value>list,edit,view,commit,delete</value></
property>
<!-- See documentation or ModelGlueConfiguration.cfc for additional
options. -->
</bean>
<!--
If you need your own configuration values (datasource names, etc),
put them here.
See modelgluesamples/simpleconfiguration/controller/Controller for an
example of how to get to the values.
Advanced users who are used to ColdSpring will probably delete this
bean in favor of their own approach.
-->
<bean id="modelglue.applicationConfiguration"
class="ModelGlue.Bean.CommonBeans.SimpleConfig">
<property name="config">
<map>
<entry
key="myDatasource"><value>myDatasource</value></entry>
</map>
</property>
</bean>
<!-- Put definitions for your own beans and services here -->
<!-- ORM Framework Configuration -->
<!--
To connect Model-Glue to either the
Transfer or Reactor ORM frameworks
uncomment and configure the appropriate block below
-->
<!--
Transfer:
<alias alias="ormAdapter" name="ormAdapter.Transfer" />
<alias alias="ormService" name="ormService.Transfer" />
<bean id="transferConfiguration"
class="transfer.com.config.Configuration">
<constructor-arg name="datasourcePath"><value>/
modelglueapplicationtemplate/config/transfer/Datasource.xml</value></
constructor-arg>
<constructor-arg name="configPath"><value>/
modelglueapplicationtemplate/config/transfer/Transfer.xml</value></
constructor-arg>
<constructor-arg name="definitionPath"><value>/
modelglueapplicationtemplate/model/data/transfer</value></constructor-
arg>
</bean>
Reactor:
<alias alias="ormAdapter" name="ormAdapter.Reactor" />
<alias alias="ormService" name="ormService.Reactor" />
<bean id="reactorConfiguration" class="reactor.config.config">
<constructor-arg name="pathToConfigXml"><value>/
modelglueapplicationtemplate/config/reactor/Reactor.xml</value></
constructor-arg>
<property name="project"><value>test</value></property>
<property name="dsn"><value>test</value></property>
<property name="type"><value>mysql</value></property>
<property
name="mapping"><value>/modelglueapplicationtemplate/model/
data/reactor</value></property>
<property name="mode"><value>development</value></property>
</bean>
-->
</beans>
On Mar 11, 12:13 pm, Dan Wilson <[email protected]> wrote:
> We are getting closer.
>
> That file, is not exactly the one we need though. The file you sent is
> one that comes with the coldspring framework as an example.
>
> Try this:
>
> 1. Inside your ModelGlue application, is a directory called config.
> 2. Inside the config directory is a file probably called ColdSpring.xml.
> 3. This is the application specific ColdSpring file that is used to run
> the ModelGlue application that gave you the original error. This
> file has an error in it somewhere and we need to see the contents to
> help you figure out what happened.
>
> Basically, if you downloaded the modelglueapplication template into your
> webroot, you can find this file in:
>
> /webroot/modelglueapplicationtemplate/config
>
> If you can't find the file, take a screenshot of the directory where
> your ModelGlue file is, and we'll be able to get more specific.
>
> DW
>
>
>
> > Lucy Miles <mailto:[email protected]>
> > Monday, March 11, 2013 12:08 PM
> > <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://
> >www.springframework.org/dtd/spring-beans.dtd">
>
> > <beans default-autowire="byName">
>
> > <bean id="userService"
> > class="coldspring.examples.quickstart.components.UserService" />
> > <bean id="userGateway"
> > class="coldspring.examples.quickstart.components.UserGateway" />
> > <bean id="configBean"
> > class="coldspring.examples.quickstart.components.ConfigBean" />
>
> > </beans>
>
> > Matt Quackenbush <mailto:[email protected]>
> > Monday, March 11, 2013 11:52 AM
> > That's the AbstractBeanFactory.cfc. We need to see your ColdSpring.xml
> > file.
> > --
> > --
> > Model-Glue Sites:
> > Home Page:http://www.model-glue.com
> > Documentation:http://docs.model-glue.com
> > Bug Tracker:http://bugs.model-glue.com
> > Blog:http://www.model-glue.com/blog
>
> > You received this message because you are subscribed to the Google
> > Groups "model-glue" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]
> > For more options, visit this group at
> >http://groups.google.com/group/model-glue?hl=en
> > ---
> > You received this message because you are subscribed to the Google
> > Groups "model-glue" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> > an email to [email protected].
> > For more options, visithttps://groups.google.com/groups/opt_out.
>
> > Lucy Miles <mailto:[email protected]>
> > Monday, March 11, 2013 11:49 AM
> > <!---
>
> > Copyright (c) 2005, David Ross, Chris Scott, Kurt Wiersma, Sean
> > Corfield
>
> > 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.
>
> > $Id: AbstractBeanFactory.cfc,v 1.9 2008/08/05 20:00:18 bkotek Exp $
>
> > --->
>
> > <cfcomponent name="AbstractBeanFactory"
> > displayname="BeanFactory"
> > extends="coldspring.beans.BeanFactory"
> > hint="Abstract Base Class for Bean Factory
> > implimentations"
> > output="false">
>
> > <!--- local bean factory id --->
> > <cfset variables.beanFactoryId = CreateUUId() />
> > <!--- local struct to hold bean definitions --->
> > <cfset variables.beanDefs = structnew()/>
> > <!--- Optional parent bean factory --->
> > <cfset variables.parent = 0>
> > <!--- bean cache --->
> > <cfset variables.singletonCache = StructNew() />
> > <cfset variables.aliasMap = StructNew() />
> > <cfset variables.known_bf_postprocessors =
> > "coldspring.beans.factory.config.PropertyPlaceholderConfigurer,coldspring.beans.factory.config.BeanFactoryLocator"
> > /
> > <cfset variables.known_bean_postprocessors =
> > "coldspring.aop.framework.autoproxy.BeanNameAutoProxyCreator" />
>
> > <!--- ColdSpring Framework Properties --->
> > <cfset variables.instanceData.frameworkPropertiesFile = "/coldspring/
> > frameworkProperties.properties" />
> > <cfset variables.instanceData.frameworkProperties =
> > loadFrameworkProperties(ExpandPath(variables.instanceData.frameworkPropertiesFile))
> > /
>
> > <cffunction name="init" access="private" returntype="void"
> > output="false">
> > <cfthrow message="Abstract CFC cannot be initialized" />
> > </cffunction>
>
> > <cffunction name="getParent" access="public"
> > returntype="coldspring.beans.AbstractBeanFactory" output="false">
> > <cfif isObject(variables.parent)>
> > <cfreturn variables.parent>
> > <cfelse>
> > <cfreturn createObject("component",
> > "coldspring.beans.AbstractBeanFactory")>
> > </cfif>
> > </cffunction>
>
> > <cffunction name="setParent" access="public" returntype="void"
> > output="false">
> > <cfargument name="parent"
> > type="coldspring.beans.AbstractBeanFactory" required="true">
> > <cfset variables.parent = arguments.parent>
> > </cffunction>
>
> > <cffunction name="getBean" access="public" returntype="any"
> > output="false">
> > <cfargument name="beanName" type="string" required="true" />
> > <cfthrow type="Method.NotImplemented">
> > </cffunction>
>
> > <cffunction name="containsBean" access="public" returntype="boolean"
> > output="false">
> > <cfargument name="beanName" type="string" required="true" />
> > <cfthrow type="Method.NotImplemented">
> > </cffunction>
>
> > <cffunction name="getType" access="public" returntype="string"
> > output="false">
> > <cfargument name="beanName" type="string" required="true" />
> > <cfthrow type="Method.NotImplemented">
> > </cffunction>
>
> > <cffunction name="isSingleton" access="public" returntype="boolean"
> > output="false">
> > <cfargument name="beanName" type="string" required="true" />
> > <cfthrow type="Method.NotImplemented">
> > </cffunction>
>
> > <!--- begining with ColdSpring 1.5, we will use the abstract bean
> > factory for all base implementations
> > and keep only xml specific processing in DefaultXmlBeanFactory
> > ---
> > <cffunction name="singletonCacheContainsBean" access="public"
> > returntype="boolean" output="false">
> > <cfargument name="beanName" type="string" required="true" />
> > <cfset var objExists = 0 />
> > <cflock name="bf_#variables.beanFactoryId#.SingletonCache"
> > type="readonly" timeout="5">
> > <cfset objExists =
> > StructKeyExists(variables.singletonCache,
> > beanName) />
> > </cflock>
> > <cfif not(objExists) AND isObject(variables.parent)>
> > <cfset objExists =
> > variables.parent.singletonCacheContainsBean(arguments.beanName)>
> > </cfif>
> > <cfreturn objExists />
> > </cffunction>
>
> > <cffunction name="getBeanFromSingletonCache" access="public"
> > returntype="any" output="false">
> > <cfargument name="beanName" type="string" required="true" />
> > <cfset var objRef = 0 />
> > <cfset var objExists = true />
> > <cflock name="bf_#variables.beanFactoryId#.SingletonCache"
> > type="readonly" timeout="5">
> > <cfif StructKeyExists(variables.singletonCache,
> > beanName)>
> > <cfset objRef =
> > variables.singletonCache[beanName] />
> > <cfelse>
> > <cfset objExists = false />
> > </cfif>
> > </cflock>
>
> > <cfif not(objExists)>
> > <cfif isObject(variables.parent)>
> > <cfset objRef =
> > variables.parent.getBeanFromSingletonCache(arguments.beanName)>
> > <cfelse>
> > <cfthrow message="Cache error, #beanName# does
> > not exists">
> > </cfif>
> > </cfif>
>
> > <cfreturn objRef />
> > </cffunction>
>
> > <cffunction name="addBeanToSingletonCache" access="public"
> > returntype="any" output="false">
> > <cfargument name="beanName" type="string" required="true" />
> > <cfargument name="beanObject" type="any" required="true" />
> > <cfset var error = false />
>
> > <cflock name="bf_#variables.beanFactoryId#.SingletonCache"
> > type="exclusive" timeout="5">
> > <cfif StructKeyExists(variables.singletonCache,
> > beanName)>
> > <cfset error = true />
> > <cfelse>
> > <cfset variables.singletonCache[beanName] =
> > beanObject />
> > </cfif>
> > </cflock>
>
> > <cfif error>
> > <cfthrow message="Cache error, #beanName# already exists
> > in cache">
> > </cfif>
> > </cffunction>
>
> > <cffunction name="getBeanDefinition" access="public"
> > returntype="coldspring.beans.BeanDefinition" output="false"
> > hint="retrieves a bean definition for the
> > specified bean">
> > <cfargument name="beanName" type="string" required="true" />
> > <!--- the supplied 'beanName' could be an alias, so we want to
> > resolve that to the concrete name first --->
> > <cfset var resolvedName = resolveBeanName(arguments.beanName) />
> > <cfif not StructKeyExists(variables.beanDefs, resolvedName)>
> > <cfif isObject(variables.parent)>
> > <cfreturn
> > variables.parent.getBeanDefinition(resolvedName)>
> > <cfelse>
> > <cfthrow type="coldspring.MissingBeanReference"
> > message="There is
> > no bean registered with the factory with the id #arguments.beanName#" /
> > </cfif>
> > <cfelse>
> > <cfreturn variables.beanDefs[resolvedName] />
> > </cfif>
> > </cffunction>
>
> > <cffunction name="beanDefinitionExists" access="public"
> > returntype="boolean" output="false"
> > hint="searches all known factories (parents) to
> > see if bean
> > definition for the specified bean exists">
> > <cfargument name="beanName" type="string" required="true" />
> > <!--- the supplied 'beanName' could be an alias, so we want to
> > resolve that to the concrete name first --->
> > <cfset var resolvedName = resolveBeanName(arguments.beanName) />
> > <cfif StructKeyExists(variables.beanDefs, resolvedName)>
> > <cfreturn true />
> > <cfelse>
> > <cfif isObject(variables.parent)>
> > <cfreturn
>
> ...
>
> read more »- Hide quoted text -
>
> - Show quoted text -
--
--
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog
You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en
---
You received this message because you are subscribed to the Google Groups
"model-glue" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.