Hello Guys,
This is just a little something I've been meaning to check up for a long
time. If I've got bean which has other bean instances passed into its
constructors or setters, what is the value of the 'type' attribute meant to
be? At the moment I have it set to 'any' but have a feeling this probably
isn't correct, for instance, take a look at this code.
<cfscript>
// Set Class Properties
VARIABLES.Instance = structNew();
VARIABLES.Instamce.Framework = "";
</cfscript>
<!--- Class Constructor Method --->
<cffunction name="init" access="public" output="false"
returntype="Products" hint="I'm the class constructor method">
<cfargument name="Framework" type="any"
required="true" hint="The Application Framework" />
<cfscript>
// Set Class
Properties
setFramework(ARGUMENTS.Framework);
</cfscript>
<cfreturn this />
</cffunction>
<!--- Set Framework --->
<cffunction name="setFramework" access="public"
output="false" returntype="void" hint="I set the application framework">
<cfargument name="Framework" type="any"
required="true" hint="The Application Framework" />
<cfscript>
// Set
framework
VARIABLES.Instance.Framework = ARGUMENTS.Framework;
</cfscript>
</cffunction>
<!--- Get Framework --->
<cffunction name="getFramework" access="public"
output="false" returntype="any" hint="I get the application framework">
<cfreturn VARIABLES.Instance.Framework />
</cffunction>
<!--- Get Instance --->
<cffunction name="getInstance" access="public"
output="false" returntype="void" hint="I get the entire instance structure">
<cfreturn VARIABLES.Instance />
</cffunction>
Now when I pass the framework in using coldspring, should that argument type
be 'any'? or 'Framework'? or 'ModelGlue.Unity.Framework'? I have no idea,
and the same goes for the 'returntype' of the getFramework() function.
If you guys can shed a little light it would be greatly appreciated.
Thanks,
Rob
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:272640
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4