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

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

http://cfwheels.googlecode.com/
ColdFusion CFScript | 24 lines | 18 code | 6 blank | 0 comment | 0 complexity | 28311acfc658be5aa7d268d103b663af MD5 | raw file
Possible License(s): Apache-2.0, CPL-1.0
  1. <cfcomponent name="FacadeFactory" hint="The Factory for getting facades">
  2. <cfscript>
  3. instance = StructNew();
  4. </cfscript>
  5. <cffunction name="init" hint="Constructor" access="public" returntype="FacadeFactory" output="false">
  6. <cfscript>
  7. setServerFacade(createObject("component", "ServerFacade").init());
  8. return this;
  9. </cfscript>
  10. </cffunction>
  11. <cffunction name="getServerFacade" access="public" returntype="ServerFacade" output="false">
  12. <cfreturn instance.ServerFacade />
  13. </cffunction>
  14. <cffunction name="setServerFacade" access="private" returntype="void" output="false">
  15. <cfargument name="ServerFacade" type="ServerFacade" required="true">
  16. <cfset instance.ServerFacade = arguments.ServerFacade />
  17. </cffunction>
  18. </cfcomponent>