> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf > Of David Ross > > not for me > > -dave
Well, that would neatly explain why nobody's commented. ;^) I've uploaded the files here: ftp://ftp.depressedpress.com/FTP/DP_Stuff.zip Here's the original message explaining the contents: I've attached examples of my method for creating a generic getter/setter and for creating CFCs ("DP CFCs") that can take advantage of them. The files in the archive are: +) \Test.cfm: This is just a test file to run. It plays with the +generic methods and shows you how to call them. +) \cfc_DepressedPress\DP_Component.cfc: This is the root class that contains/manages the generic getter and setter, the metadata management, the generic exception method and other stuff. All DP CFCs much ultimately extend this class (either directly or by extending a class that extends it). +) \cfc_DepressedPress\Test\Minimal.cfc: This is just a template which contains the bare minimum needed for a CFC to leverage all of this stuff. It has no properties set. All DP CFCs must: 1) Extend (ultimately) cfc_DepressedPress.DP_Component. 2) Call cacheDPMetaData() in the pseudo-constructor. 3) Have an "init()" method. 4) Call "super.init()" in their init() method. 5) Override the defineProps() method (even if it's empty). +) \cfc_DepressedPress\Test\Person.cfc: This is a very simple CFC +defining only two properties: FirstName and LastName. It also defines one custom setter that prevents anybody from setting "FirstName" to be "Jim" (because that's my name dammit!) To test all of this you'll need to set up a mapping (sorry, but I gave up trying to work around it and still maintain a decent file structure). The mapping should be "cfc_DepressedPress" and point (you guessed it!) to the "cfc_DepressedPress" folder. Let me know what you think! Jim Davis ---------------------------------------------------------- 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]
