I have two simple CFCs as shown below:
Test1.cfc
<cfcomponent>
<cffunction name="initMethod1" access="private" returntype="boolean">
<cfreturn true />
</cfcomponent>
Test2.cfc
<cfcomponent>
<cffunction name="initMethod2" access="private" returntype="boolean">
<cfreturn true />
</cfcomponent>
During OnApplicationStart() of Application.cfc, I make the following calls:
<cfset application["Test1"] = CreateObject("component","jbx.c.Test1") />
<cfset application["Test2"] = CreateObject("component","jbx.c.Test2") />
When I dump the application scope, notice below that both components have their own function as well as the other one's function. Any idea why this is and how to correct it? Thanks.