PageRenderTime 20ms CodeModel.GetById 15ms app.highlight 1ms RepoModel.GetById 2ms 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
 1<cfcomponent name="FacadeFactory" hint="The Factory for getting facades">
 2	
 3	<cfscript>
 4		instance = StructNew();
 5	</cfscript>
 6	
 7	<cffunction name="init" hint="Constructor" access="public" returntype="FacadeFactory" output="false">
 8		<cfscript>
 9			setServerFacade(createObject("component", "ServerFacade").init());
10			
11			return this;
12		</cfscript>
13	</cffunction>
14	
15	<cffunction name="getServerFacade" access="public" returntype="ServerFacade" output="false">
16		<cfreturn instance.ServerFacade />
17	</cffunction>
18	
19	<cffunction name="setServerFacade" access="private" returntype="void" output="false">
20		<cfargument name="ServerFacade" type="ServerFacade" required="true">
21		<cfset instance.ServerFacade = arguments.ServerFacade />
22	</cffunction>
23	
24</cfcomponent>