Just to follow up on this, i confirmed today with Charlie Arehart that you
CAN use variables in a method's returntype, and in an argument's type
attribute, and in a component's extents attribute - on BlueDragon. I didn't
know that! I had just assumed it behaved in the same way as CFMX.

Effectively, it seems to me that that's equivelent to an Application scoped
mapping, because you can set a request or application scoped variable and
dereference that everywhere in place of your mapping name as below:

cfset request.myMapping=getdirectoryfrompath(script_name)

createObject("component", "#request.myMapping#.Cat")

cfargument name="Cat" type="#request.myMapping#.Cat" required="true"

cffunction name="getCat" returntype="#request.myMapping#.Cat"

cfcomponent name="Tom" extends="#request.myMapping#.Cat"

i don't have BD installed here, so i couldn't test this in depth yet, but it
seems to work!

AND ... Vince Bonfanti wrote me that they already have a new CFMAPPING tag
pretty much finished ... it'll be released in Nov, with a beta of BD 6.2.1
out in a few weeks. He says the implementation was pretty simple!

Looks like it's high time to install and trial BlueDragon for those projects
where an application scoped mapping would be important, especially after the
coming 6.2.1 release.

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Behalf Of Dawson, Michael
> Sent: Tuesday, October 04, 2005 12:02 AM
> To: [email protected]
> Subject: RE: [CFCDev] Per Application mappings WAS: Java CFCProxy info?
>
>
> >PLEASE MM don't shift this to enterprise only.
>
> No doubt!!!  If this were Ent-only, it would defeat the purpose.  With
> Ent, you already have the ability to get around most of the mapping
> problems just by creating new instances.
>
> M!ke
>
>
> ----------------------------------------------------------
> You are subscribed to cfcdev. To unsubscribe, send an email to
> [email protected] with the words 'unsubscribe cfcdev' as the
> subject of the email.
>
> CFCDev is run by CFCZone (www.cfczone.org) and supported by
> CFXHosting (www.cfxhosting.com).
>
> CFCDev is supported by New Atlanta, makers of BlueDragon
> http://www.newatlanta.com/products/bluedragon/index.cfm
>
> An archive of the CFCDev list is available at
> www.mail-archive.com/[email protected]
>
>





----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to 
[email protected] with the words 'unsubscribe cfcdev' as the subject of the 
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

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


Reply via email to