I have a question about CFC Mappings.

Example:
Application "shop" uses CFCs with the static mapping /shop
/shop is mapped in the CF Admin to \\devserver\apps\shop\
Then I would create instances using this syntax:
CreateObject('component', 'shop.model.shopdao')

Lets say we have some developers, working on the same application.
Every developer has a working folder on devserver, they use CVS or VSS.
\\devserver\developerA\apps\shop\
\\devserver\developerB\apps\shop\
...
Static mappings are not possible, so a workaround would be a dynamic
setting in the Application.cfm:
        cfset cfcMapping="shopdeveloperA."
        a CF Admin mapping would be created /developerA ->
\\devserver\developerA\apps\shop\
Then I would create instances using this syntax:
CreateObject('component', '#cfcMapping#model.shopdao')
This would work, but dynamic mappings are not possible in <cfargument>
(and maybe also in extends, throws, ...)

Do you have a solution for this problem?

Thanks,
Harry

(By the way, the cfargument documentation says: 
        type can be a variableName: a string formatted according to
ColdFusion variable naming conventions.

        Is this really working?

        cfcMapping="shop.shopdao"

        <cfargument name="test" type="cfcMapping" required="Yes"> -
Error: the argument passed to function is not of type cfcMapping
        <cfargument name="test" type="#cfcMapping#" required="Yes"> -
Error: this expression must have a constant value)
----------------------------------------------------------
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