forked from markmandel/JavaLoader
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMessage.cfc
More file actions
28 lines (19 loc) · 959 Bytes
/
Copy pathMessage.cfc
File metadata and controls
28 lines (19 loc) · 959 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<cfcomponent hint="I have a message to send!" output="false">
<!------------------------------------------- PUBLIC ------------------------------------------->
<!--- we will tell Spring to run this method as our --->
<cffunction name="init" hint="Constructor" access="public" returntype="Message" output="false">
<cfscript>
setMessage("Hello from Spring!");
return this;
</cfscript>
</cffunction>
<!------------------------------------------- PACKAGE ------------------------------------------->
<!------------------------------------------- PRIVATE ------------------------------------------->
<cffunction name="getMessage" access="public" returntype="string" output="false">
<cfreturn instance.Message />
</cffunction>
<cffunction name="setMessage" access="private" returntype="void" output="false">
<cfargument name="Message" type="string" required="true">
<cfset instance.Message = arguments.Message />
</cffunction>
</cfcomponent>