Changes between Initial Version and Version 1 of FAQs/HowDoIGetModelGlueToUseAPreexistingColdSpringInstance

Show
Ignore:
Timestamp:
01/14/10 01:53:21 (16 years ago)
Author:
DanWilson (IP: 65.190.16.149)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FAQs/HowDoIGetModelGlueToUseAPreexistingColdSpringInstance

    v1 v1  
     1 
     2== How do I get Model-Glue to use a pre-existing ColdSpring instance? == 
     3 
     4You can pass an instantiated ColdSpring factory to Model-Glue through the use of the ModelGlue_PARENT_BEAN_FACTORY variable. 
     5 
     6This variable is set in the main index page of the application (usually index.cfm) and must contain a pre-initialized and configured ColdSpring bean factory. You may do any pre-processing, modification, string-replacement or configuration that makes sense for your application.  
     7 
     8Take a look at [http://svn.model-glue.com/trunk/modelglueapplicationtemplate/index.cfm the example index.cfm page in the ModelGlueApplicationTemplate] and look for ModelGlue_PARENT_BEAN_FACTORY. 
     9 
     10Parent Bean factories work in a hierarchical fashion. When a bean is asked for, first the application looks in the main application bean factory, and if the bean is not found, it looks in the parent bean factory. You can chain parent bean factories, if you like.