>
>It is almost impossible to make CFC method calls dynamic. That is every
>method is called with different types of arguments. The 
>actions are mapped
>to CFC Object/methods and i dont think it is possible to 
>dynamically execute
>methods with different arguments based on the XML Config Params.
>i.e XML Mapping
><?xml....
> <ActionMaping  action="myAction" dataClases="Products" 
>aguments="request,
>form, url, application.appMainDataStore"/>

I'm not sure I completely follow your line of reasoning here, but it
certainly looks like you've put some thought into what you're doing. That
leads me to belive that whatever else may be departing from the 'ideal' way
of doing things probably does so for a good reason, or at the very least a
justifiable one.

>
>Also a given module only needs a few instance variables in the Cache.
>
>>With your method, it is very possible to forget about one of 
>the places
>>where the application scope is directly referenced.
>
>Application scope variables are NOT directly referenced, they 
>are returned
>by
>a method catering this specifc Module/CFC.

This goes back to the point above. If you've already minimized the
references to the application scope then you're probably in pretty good
shape even if you could do more to increase encapsulation and decrease
cohesion.

>
>Products.cfc (assume <cfunction....)

ok

>
>init(){
>structAppend(instance.prdData,
>application.appMainDataStore.getProductsCache());
>//Your implementation would look like
>structAppend(instance.prdData, arguments.myArgName.getProductsCache());
>}
>
>getProductsCache() returns a struct of variables from the Cache.
>so you will have
>instance.prdData.states['USA'] = "All US States Parsed into 
>option tags"
>instance.prdData.states['CAN'] = "ALL Canadian Provices"

Yep, that sounds right.

>
>I dont know of any ColdFusion MVC's that would dynamically 
>execute all the
>CFC's for you
>with dynamic parameters coded in configuration files. This is a huge
>advantage towards
>streamlined development when you have a big Team of developers.
>

Again, I think I'm missing something of the deeper principle of what you're
doing and what you're trying to achieve, because I don't quite follow how
you are calling the init() method dynamically.

>Maybe i am missing something.

It's very possible we're both missing something. Hopefully we'll meet in the
middle sometime soon :)

>
>Joe Eugene
>
>

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

Reply via email to