Changeset 1280
- Timestamp:
- 01/28/08 17:15:53 (5 years ago)
- Location:
- coldbox/trunk
- Files:
-
- 3 modified
-
ApplicationTemplate/config/coldbox.xml.cfm (modified) (1 diff)
-
src/system/config/settings.xml (modified) (1 diff)
-
src/system/interceptors/autowire.cfc (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
coldbox/trunk/ApplicationTemplate/config/coldbox.xml.cfm
r1271 r1280 140 140 <Datasources /> 141 141 142 <!--ColdBox Object Caching Settings Overrides the Framework-wide settings -->142 <!--ColdBox Object Caching Settings Overrides the Framework-wide settings 143 143 <Cache> 144 144 <ObjectDefaultTimeout>45</ObjectDefaultTimeout> 145 145 <ObjectDefaultLastAccessTimeout>15</ObjectDefaultLastAccessTimeout> 146 146 <UseLastAccessTimeouts>true</UseLastAccessTimeouts> 147 <ReapFrequency> 3</ReapFrequency>147 <ReapFrequency>1</ReapFrequency> 148 148 <MaxObjects>100</MaxObjects> 149 <FreeMemoryPercentageThreshold>5</FreeMemoryPercentageThreshold> 150 <!-- LFU/LRU --> 149 <FreeMemoryPercentageThreshold>1</FreeMemoryPercentageThreshold> 151 150 <EvictionPolicy>LFU</EvictionPolicy> 152 151 </Cache> 152 --> 153 153 154 154 <!-- Interceptor Declarations -
coldbox/trunk/src/system/config/settings.xml
r1277 r1280 41 41 <Setting name="CacheMaxObjects" value="100"/> 42 42 <!--ColdBox Cache Parameter: Free JVM Memory % Threshold (0=not used)--> 43 <Setting name="CacheFreeMemoryPercentageThreshold" value="1 0"/>43 <Setting name="CacheFreeMemoryPercentageThreshold" value="1"/> 44 44 <!--ColdBox Cache Parameter: Whether reaping with default last access timeouts --> 45 45 <Setting name="CacheUseLastAccessTimeouts" value="true"/> -
coldbox/trunk/src/system/interceptors/autowire.cfc
r1267 r1280 32 32 else{ 33 33 setDebugMode(getProperty("debugMode")); 34 } 35 /* DI Complete Method */ 36 if(propertyExists("completeDIMethodName")){ 37 setCompleteDIMethodName(getProperty("completeDIMethodName")); 38 } 39 else{ 40 setCompleteDIMethodName('onDIComplete'); 34 41 } 35 42 </cfscript> … … 174 181 175 182 }//end for loop of dependencies. 183 184 /* Process After ID Complete */ 185 processAfterCompleteDI(targetObject); 186 176 187 }//if autowiring 177 188 </cfscript> … … 227 238 </cffunction> 228 239 240 <!--- Process After DI Complete ---> 241 <cffunction name="processAfterCompleteDI" hint="see if we have a method to call after DI, and if so, call it" access="private" returntype="void" output="false"> 242 <!--- ************************************************************* ---> 243 <cfargument name="targetObject" hint="the target object to call on" type="any" required="Yes"> 244 <!--- ************************************************************* ---> 245 <cfset var meta = 0 /> 246 <cfif StructKeyExists(arguments.targetObject, getCompleteDIMethodName())> 247 <cfset meta = getMetaData(arguments.targetObject[getCompleteDIMethodName()]) /> 248 <cfif NOT StructKeyExists(meta, "access") OR meta.access eq "public"> 249 <cfinvoke component="#arguments.targetObject#" method="#getCompleteDIMethodName()#" /> 250 </cfif> 251 </cfif> 252 </cffunction> 253 229 254 <!--- Get a new MD cache entry structure ---> 230 255 <cffunction name="getNewMDEntry" access="private" returntype="struct" hint="Get a new metadata entry structure" output="false" > … … 258 283 <cfset instance.debugMode = arguments.debugMode/> 259 284 </cffunction> 285 286 <!--- Method to be called after DI ---> 287 <cffunction name="getCompleteDIMethodName" access="private" returntype="string" output="false"> 288 <cfreturn instance.completeDIMethodName /> 289 </cffunction> 290 <cffunction name="setCompleteDIMethodName" access="private" returntype="void" output="false"> 291 <cfargument name="completeDIMethodName" type="string" required="true"> 292 <cfset instance.completeDIMethodName = arguments.completeDIMethodName /> 293 </cffunction> 294 295 <cffunction name="hasCompleteDIMethodName" hint="do we have a after complete DI method" access="private" returntype="boolean" output="false"> 296 <cfreturn StructKeyExists(instance, "completeDIMethodName") /> 297 </cffunction> 260 298 261 299 </cfcomponent>
