ColdBox Framework Forums Notification: Post to ApplicationStorage plugin exists method should be public

Title: RE: ApplicationStorage plugin exists method should be public
Thread: ApplicationStorage plugin exists method should be public
Forum: Bugs (ColdBox)
Conference: ColdBox
User: doryphores Say you are storing some object in the application scope but you only want to
set it if it doesn't already exist. How do you do that without being able to
call the exists method?

[code]<cfset appStorage =
getPlugin("applicationStorage") />
    
<cfif not
appStorage.exists("someObject")>
  <cfset someObject = createObject("component",
"path.to.someObject").init() />
      
  <cfset appStorage.setVar("someObject",
someObject) />
</cfif>[/code]
http://forums.coldboxframework.com/index.cfm?event=ehMessages.dspMessages&threadid=4115352A-FF65-CEF6-65849125E0B7D316