PageRenderTime 283ms CodeModel.GetById 160ms app.highlight 1ms RepoModel.GetById 120ms 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
 1<cfcomponent name="ServerFacade" hint="Facade to the Server Scope" extends="AbstractBaseFacade">
 2
 3<cfscript>
 4	instance.static.uuid = "E9F9B59E-19D2-AE93-755113943D8C265J";
 5</cfscript>
 6
 7<cffunction name="init" hint="Constructor" access="public" returntype="AbstractBaseFacade" output="false">
 8	<cfscript>
 9		setJavaLoaderKey(instance.static.uuid);
10		
11		return this;
12	</cfscript>
13</cffunction>
14
15<cffunction name="getJavaLoader" access="public" returntype="any" output="false">
16	<cfreturn StructFind(getScope(), getJavaLoaderKey()) />
17</cffunction>
18
19<cffunction name="setJavaLoader" access="public" returntype="void" output="false">
20	<cfargument name="javaLoader" type="any" required="true">
21	<cfset StructInsert(getScope(), getJavaLoaderKey(), arguments.javaLoader) />
22</cffunction>
23
24<cffunction name="hasJavaLoader" access="public" returntype="boolean" output="false" hint="if the server scope has the JavaLoader in it">
25	<cfreturn StructKeyExists(getScope(), getJavaLoaderkey())/>
26</cffunction>
27
28<cffunction name="getScope" access="private" returntype="struct" output="false" hint="returns the Server scope">
29	<cfreturn server>
30</cffunction>
31
32<cffunction name="getJavaLoaderKey" access="private" returntype="string" output="false">
33	<cfreturn instance.JavaLoaderKey />
34</cffunction>
35
36<cffunction name="setJavaLoaderKey" access="private" returntype="void" output="false">
37	<cfargument name="JavaLoaderKey" type="string" required="true">
38	<cfset instance.JavaLoaderKey = arguments.JavaLoaderKey />
39</cffunction>
40
41</cfcomponent>