What can we say, Jim? Great minds run in the same channel.

Or is that gutter...

;-)

Regards,

Hal 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Jim Davis
Sent: Friday, January 20, 2006 2:58 AM
To: [email protected]
Subject: RE: [CFCDev] Bean and CFC question

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On 
> Behalf Of Sean Corfield
> Sent: Friday, January 20, 2006 2:19 AM
> To: [email protected]
> Subject: Re: [CFCDev] Bean and CFC question
> 
> On 1/19/06, Hal Helms <[EMAIL PROTECTED]> wrote:
> > why am I writing separate getters and setters when I no longer am
> concerned
> > about pseudo-static typing? So, I wrote universal get(propertyName) 
> > and set(propertyName, value) methods for BaseComponent.cfc.
> 
> My initial reaction was "yuck!" until I saw your caveat about 
> detecting and calling getX() if it is defined. That's pretty sweet.

Sorry for butting in - I missed a lot of the early messages - but I've done
this as well.  My implementation is here:

http://www.depressedpress.com/Content/Development/ColdFusion/DPLibraries/Doc
umentation/DocViewer.cfm?Component=cfc_DepressedPress.DP_Component

The Root CFC houses the generic getter/setter which first determine if
actual getter/setters having been defined.

They also do type validation (based on optional property declaration
information) and so forth.

I keep meaning to update the documentation (what's up there is almost a year
old now) but never seem to find the time.  But I have uploaded a ton of
material that uses the root component:

http://www.depressedpress.com/Content/Development/ColdFusion/DPLibraries/Ind
ex.cfm

I particularly pleased with the security system but have failed to document
it to a point where it would make sense to anybody else.  ;^)

Jim Davis




----------------------------------------------------------
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).

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).

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


Reply via email to