Changeset 2209
- Timestamp:
- 04/22/09 04:22:32 (4 years ago)
- Location:
- coldbox/trunk
- Files:
-
- 1 added
- 9 modified
- 2 moved
-
system/Coldbox.cfc (modified) (2 diffs)
-
system/plugins/BeanFactory.cfc (modified) (2 diffs)
-
system/remote/ColdboxProxy.cfc (modified) (1 diff)
-
system/services/HandlerService.cfc (modified) (2 diffs)
-
system/services/LoaderService.cfc (modified) (3 diffs)
-
system/services/PluginService.cfc (modified) (2 diffs)
-
system/testing/BaseTestCase.cfc (modified) (1 diff)
-
system/util/collections/BaseDictionary.cfc (moved) (moved from coldbox/trunk/system/util/BaseDictionary.cfc)
-
testing/cases/interceptors/securityTest.cfc (modified) (6 diffs)
-
testing/cases/services/loaderserviceTest.cfc (modified) (2 diffs)
-
testing/cases/util/collections (added)
-
testing/cases/util/collections/BaseDictionaryTest.cfc (moved) (moved from coldbox/trunk/testing/cases/util/BaseDictionaryTest.cfc) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
coldbox/trunk/system/Coldbox.cfc
r2194 r2209 63 63 application[COLDBOX_APP_KEY] = CreateObject("component","coldbox.system.Controller").init(COLDBOX_APP_ROOT_PATH); 64 64 /* Setup the Framework And Application */ 65 application[COLDBOX_APP_KEY].getLoaderService(). setupCalls(COLDBOX_CONFIG_FILE);65 application[COLDBOX_APP_KEY].getLoaderService().configLoader(COLDBOX_CONFIG_FILE); 66 66 </cfscript> 67 67 </cffunction> … … 85 85 <cflock type="exclusive" name="#getAppHash()#" timeout="#getLockTimeout()#" throwontimeout="true"> 86 86 <cfset application[COLDBOX_APP_KEY].setAppStartHandlerFired(false)> 87 <cfset application[COLDBOX_APP_KEY].getLoaderService(). setupCalls(COLDBOX_CONFIG_FILE)>87 <cfset application[COLDBOX_APP_KEY].getLoaderService().configLoader(COLDBOX_CONFIG_FILE)> 88 88 </cflock> 89 89 <cfelse> -
coldbox/trunk/system/plugins/BeanFactory.cfc
r2206 r2209 35 35 36 36 /* Setup the Autowire DI Dictionary */ 37 setDICacheDictionary(CreateObject("component","coldbox.system.util. BaseDictionary").init('DIMetadata'));37 setDICacheDictionary(CreateObject("component","coldbox.system.util.collections.BaseDictionary").init('DIMetadata')); 38 38 /* Model Mappings */ 39 39 instance.modelMappings = structnew(); … … 952 952 953 953 <!--- Get Set DI CACHE Dictionary ---> 954 <cffunction name="getDICacheDictionary" access="private" output="false" returntype="coldbox.system.util. BaseDictionary" hint="Get DICacheDictionary">954 <cffunction name="getDICacheDictionary" access="private" output="false" returntype="coldbox.system.util.collections.BaseDictionary" hint="Get DICacheDictionary"> 955 955 <cfreturn instance.DICacheDictionary/> 956 956 </cffunction> 957 957 <cffunction name="setDICacheDictionary" access="private" output="false" returntype="void" hint="Set DICacheDictionary"> 958 <cfargument name="DICacheDictionary" type="coldbox.system.util. BaseDictionary" required="true"/>958 <cfargument name="DICacheDictionary" type="coldbox.system.util.collections.BaseDictionary" required="true"/> 959 959 <cfset instance.DICacheDictionary = arguments.DICacheDictionary/> 960 960 </cffunction> -
coldbox/trunk/system/remote/ColdboxProxy.cfc
r2191 r2209 306 306 application[COLDBOX_APP_KEY] = cbController; 307 307 /* Setup Calls */ 308 cbController.getLoaderService(). setupCalls(arguments.configLocation);308 cbController.getLoaderService().configLoader(arguments.configLocation); 309 309 } 310 310 </cfscript> -
coldbox/trunk/system/services/HandlerService.cfc
r2193 r2209 22 22 setController(arguments.controller); 23 23 /* Setup the Event Handler Cache Dictionary */ 24 setHandlerCacheDictionary(CreateObject("component","coldbox.system.util. BaseDictionary").init('HandlersMetadata'));24 setHandlerCacheDictionary(CreateObject("component","coldbox.system.util.collections.BaseDictionary").init('HandlersMetadata')); 25 25 /* Setup the Event Cache Dictionary */ 26 setEventCacheDictionary(CreateObject("component","coldbox.system.util. BaseDictionary").init('EventCache'));26 setEventCacheDictionary(CreateObject("component","coldbox.system.util.collections.BaseDictionary").init('EventCache')); 27 27 28 28 /* Return Service */ … … 324 324 325 325 <!--- Handler Cache Dictionary ---> 326 <cffunction name="getHandlerCacheDictionary" access="public" returntype="coldbox.system.util. BaseDictionary" output="false">326 <cffunction name="getHandlerCacheDictionary" access="public" returntype="coldbox.system.util.collections.BaseDictionary" output="false"> 327 327 <cfreturn instance.HandlerCacheDictionary> 328 328 </cffunction> 329 329 <cffunction name="setHandlerCacheDictionary" access="public" returntype="void" output="false"> 330 <cfargument name="HandlerCacheDictionary" type="coldbox.system.util. BaseDictionary" required="true">330 <cfargument name="HandlerCacheDictionary" type="coldbox.system.util.collections.BaseDictionary" required="true"> 331 331 <cfset instance.HandlerCacheDictionary = arguments.HandlerCacheDictionary> 332 332 </cffunction> 333 333 334 334 <!--- Event Cache Dictionary ---> 335 <cffunction name="getEventCacheDictionary" access="public" returntype="coldbox.system.util. BaseDictionary" output="false">335 <cffunction name="getEventCacheDictionary" access="public" returntype="coldbox.system.util.collections.BaseDictionary" output="false"> 336 336 <cfreturn instance.EventCacheDictionary> 337 337 </cffunction> 338 338 <cffunction name="setEventCacheDictionary" access="public" returntype="void" output="false"> 339 <cfargument name="EventCacheDictionary" type="coldbox.system.util. BaseDictionary" required="true">339 <cfargument name="EventCacheDictionary" type="coldbox.system.util.collections.BaseDictionary" required="true"> 340 340 <cfset instance.EventCacheDictionary = arguments.EventCacheDictionary> 341 341 </cffunction> -
coldbox/trunk/system/services/LoaderService.cfc
r2149 r2209 27 27 <!------------------------------------------- PUBLIC -------------------------------------------> 28 28 29 <!--- Setup Calls --->30 <cffunction name="setupCalls" returntype="void" access="public" hint="I execute the framework and application loading scripts" output="false">31 <!--- ************************************************************* --->32 <cfargument name="overrideConfigFile" type="string" required="false" default="" hint="Only used for unit testing or reparsing of a specific coldbox config file.">33 <cfargument name="overrideAppMapping" type="string" required="false" default="" hint="Only used for unit testing or reparsing of a specific coldbox config file."/>34 <!--- ************************************************************* --->35 <cfscript>36 //execute the configLoader37 configLoader(argumentCollection=arguments);38 //execute the handler registrations after configurations loaded39 getController().getHandlerService().registerHandlers();40 </cfscript>41 </cffunction>42 43 29 <!--- Config Loader Method ---> 44 30 <cffunction name="configLoader" returntype="void" access="Public" hint="I Load the configurations only, init the framework variables and more." output="false"> 45 31 <!--- ************************************************************* ---> 46 32 <cfargument name="overrideConfigFile" required="false" type="string" default="" hint="Only used for unit testing or reparsing of a specific coldbox config file."> 47 <cfargument name="overrideAppMapping" type="string" required="false" default="" hint="Only used for unit testing or reparsing of a specific coldbox config file."/>33 <cfargument name="overrideAppMapping" required="false" type="string" default="" hint="Only used for unit testing or reparsing of a specific coldbox config file."/> 48 34 <!--- ************************************************************* ---> 49 35 <cfscript> … … 58 44 controller.getHandlerService().clearDictionaries(); 59 45 60 / /Prepare Parser46 /* Prepare Parser */ 61 47 XMLParser = controller.getPlugin("XMLParser"); 62 48 63 / /Load Coldbox Config Settings Structure49 /* Load Coldbox Config Settings Structure */ 64 50 FrameworkSettings = XMLParser.loadFramework(arguments.overrideConfigFile); 65 51 controller.setColdboxSettings(FrameworkSettings); 66 52 67 / /Create the Cache Config Bean with data from the framework's settings.xml53 /* Create the Cache Config Bean with data from the framework's settings.xml */ 68 54 CacheConfigBean.populate(FrameworkSettings); 69 / /Configure the Object Cache for first usage.55 /* Configure the Object Cache for first usage. */ 70 56 controller.getColdboxOCM().configure(CacheConfigBean); 71 57 72 / /Load Application Config Settings Now that framework has been loaded.58 /* Load Application Config Settings Now that framework has been loaded. */ 73 59 ConfigSettings = XMLParser.parseConfig(arguments.overrideAppMapping); 74 60 controller.setConfigSettings(ConfigSettings); 75 61 76 / /Check for Cache OVerride Settings in Config62 /* Check for Cache OVerride Settings in Config */ 77 63 if ( ConfigSettings.CacheSettings.OVERRIDE ){ 78 64 //Recreate the Config Bean … … 88 74 } 89 75 90 /* Populate Debugger with settings from the framework */91 DebuggerConfigBean.populate(FrameworkSettings);92 93 76 /* Check for Debugger Override, if true, then overpopulate with configuration settings overriding framework settings. */ 94 77 if( ConfigSettings.DebuggerSettings.OVERRIDE ){ 95 78 DebuggerConfigBean.populate(ConfigSettings.DebuggerSettings); 96 79 } 80 else{ 81 /* Populate Debugger with settings from the framework */ 82 DebuggerConfigBean.populate(FrameworkSettings); 83 } 97 84 98 /* Configure the Debugger with framework wide settings.*/85 /* Configure the Debugger For Usage*/ 99 86 controller.getDebuggerService().setDebuggerConfigBean(DebuggerConfigBean); 87 88 /* execute the handler registrations after configurations loaded */ 89 controller.getHandlerService().registerHandlers(); 100 90 101 91 /* Register The Interceptors */ -
coldbox/trunk/system/services/PluginService.cfc
r2195 r2209 27 27 /* Set Service Properties */ 28 28 setColdBoxPluginsPath('coldbox.system.plugins'); 29 setCacheDictionary(CreateObject("component","coldbox.system.util. BaseDictionary").init('PluginMetadata'));29 setCacheDictionary(CreateObject("component","coldbox.system.util.collections.BaseDictionary").init('PluginMetadata')); 30 30 31 31 /* Return instance */ … … 167 167 <cffunction name="setcacheDictionary" access="private" output="false" returntype="void" hint="Set the plugin cache dictionary. NOT EXPOSED to avoid screwups"> 168 168 <!--- ************************************************************* ---> 169 <cfargument name="cacheDictionary" type="coldbox.system.util. BaseDictionary" required="true"/>169 <cfargument name="cacheDictionary" type="coldbox.system.util.collections.BaseDictionary" required="true"/> 170 170 <!--- ************************************************************* ---> 171 171 <cfset instance.cacheDictionary = arguments.cacheDictionary/> -
coldbox/trunk/system/testing/BaseTestCase.cfc
r2173 r2209 52 52 } 53 53 /* Setup */ 54 instance.controller.getLoaderService(). setupCalls(instance.ConfigMapping,instance.AppMapping);54 instance.controller.getLoaderService().configLoader(instance.ConfigMapping,instance.AppMapping); 55 55 } 56 56 -
coldbox/trunk/testing/cases/interceptors/securityTest.cfc
r2173 r2209 88 88 89 89 //resetup 90 getController().getLoaderService(). setupCalls(getConfigMapping(),getAppMapping());90 getController().getLoaderService().configLoader(getConfigMapping(),getAppMapping()); 91 91 </cfscript> 92 92 <!--- Login a user ---> … … 121 121 122 122 //resetup 123 getController().getLoaderService(). setupCalls(getConfigMapping(),getAppMapping());123 getController().getLoaderService().configLoader(getConfigMapping(),getAppMapping()); 124 124 125 125 </cfscript> … … 136 136 137 137 //resetup 138 getController().getLoaderService(). setupCalls(getConfigMapping(),getAppMapping());138 getController().getLoaderService().configLoader(getConfigMapping(),getAppMapping()); 139 139 140 140 </cfscript> … … 151 151 152 152 //resetup 153 getController().getLoaderService(). setupCalls(getConfigMapping(),getAppMapping());153 getController().getLoaderService().configLoader(getConfigMapping(),getAppMapping()); 154 154 155 155 </cfscript> … … 166 166 167 167 //resetup 168 getController().getLoaderService(). setupCalls(getConfigMapping(),getAppMapping());168 getController().getLoaderService().configLoader(getConfigMapping(),getAppMapping()); 169 169 170 170 /* Place rules on OCM */ … … 204 204 205 205 //resetup 206 getController().getLoaderService(). setupCalls(getConfigMapping(),getAppMapping());206 getController().getLoaderService().configLoader(getConfigMapping(),getAppMapping()); 207 207 208 208 /* Test */ -
coldbox/trunk/testing/cases/services/loaderserviceTest.cfc
r2173 r2209 22 22 </cffunction> 23 23 24 <cffunction name="test SetupCalls" access="public" returntype="void" output="false">24 <cffunction name="testconfigLoader" access="public" returntype="void" output="false"> 25 25 <cfscript> 26 26 var service = getController().getservice("loader"); … … 29 29 getController().setSetting("dummyVar", true); 30 30 31 service. setupCalls(getConfigMapping(),getAppMapping());31 service.configLoader(getConfigMapping(),getAppMapping()); 32 32 33 33 AssertFalse( getController().settingExists("dummyVar") ); -
coldbox/trunk/testing/cases/util/collections/BaseDictionaryTest.cfc
r2174 r2209 4 4 <cffunction name="setup" output="false" access="public" returntype="any" hint=""> 5 5 <cfscript> 6 dictionary = CreateObject("component","coldbox.system.util. baseDictionary").init('MyTest');6 dictionary = CreateObject("component","coldbox.system.util.collections.BaseDictionary").init('MyTest'); 7 7 </cfscript> 8 8 </cffunction>
