/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
- <cfcomponent name="FacadeFactory" hint="The Factory for getting facades">
-
- <cfscript>
- instance = StructNew();
- </cfscript>
-
- <cffunction name="init" hint="Constructor" access="public" returntype="FacadeFactory" output="false">
- <cfscript>
- setServerFacade(createObject("component", "ServerFacade").init());
-
- return this;
- </cfscript>
- </cffunction>
-
- <cffunction name="getServerFacade" access="public" returntype="ServerFacade" output="false">
- <cfreturn instance.ServerFacade />
- </cffunction>
-
- <cffunction name="setServerFacade" access="private" returntype="void" output="false">
- <cfargument name="ServerFacade" type="ServerFacade" required="true">
- <cfset instance.ServerFacade = arguments.ServerFacade />
- </cffunction>
-
- </cfcomponent>