PageRenderTime 26ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/wheels/vendor/memcached/com/facade/ServerFacade.cfc

http://cfwheels.googlecode.com/
ColdFusion CFScript | 41 lines | 31 code | 10 blank | 0 comment | 0 complexity | 7938425bd4e86ad8695ce0d729cc8511 MD5 | raw file
Possible License(s): Apache-2.0, CPL-1.0
  1. <cfcomponent name="ServerFacade" hint="Facade to the Server Scope" extends="AbstractBaseFacade">
  2. <cfscript>
  3. instance.static.uuid = "E9F9B59E-19D2-AE93-755113943D8C265J";
  4. </cfscript>
  5. <cffunction name="init" hint="Constructor" access="public" returntype="AbstractBaseFacade" output="false">
  6. <cfscript>
  7. setJavaLoaderKey(instance.static.uuid);
  8. return this;
  9. </cfscript>
  10. </cffunction>
  11. <cffunction name="getJavaLoader" access="public" returntype="any" output="false">
  12. <cfreturn StructFind(getScope(), getJavaLoaderKey()) />
  13. </cffunction>
  14. <cffunction name="setJavaLoader" access="public" returntype="void" output="false">
  15. <cfargument name="javaLoader" type="any" required="true">
  16. <cfset StructInsert(getScope(), getJavaLoaderKey(), arguments.javaLoader) />
  17. </cffunction>
  18. <cffunction name="hasJavaLoader" access="public" returntype="boolean" output="false" hint="if the server scope has the JavaLoader in it">
  19. <cfreturn StructKeyExists(getScope(), getJavaLoaderkey())/>
  20. </cffunction>
  21. <cffunction name="getScope" access="private" returntype="struct" output="false" hint="returns the Server scope">
  22. <cfreturn server>
  23. </cffunction>
  24. <cffunction name="getJavaLoaderKey" access="private" returntype="string" output="false">
  25. <cfreturn instance.JavaLoaderKey />
  26. </cffunction>
  27. <cffunction name="setJavaLoaderKey" access="private" returntype="void" output="false">
  28. <cfargument name="JavaLoaderKey" type="string" required="true">
  29. <cfset instance.JavaLoaderKey = arguments.JavaLoaderKey />
  30. </cffunction>
  31. </cfcomponent>