> -----Original Message-----
> From: Barney Boisvert [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 09, 2005 4:01 PM
> To: CF-Talk
> Subject: Re: Web Service Can't Extend non-web service?
> 
> I can't say that I know what the problem is, but I will say that your
> web service objects almost certainly should be completely flat, with
> no inheritance anywhere.  The only place I could see inheritance being
> useful is if you're decorating an existing service object with some
> additional functionality (perhaps a public service and an admin
> service that includes all the operations of the public service).
> Inheritance for decoration generally isn't a good course of action, of
> course, but web service objects a bit of a different beast than "real"
> objects.
> 
> You certainly shouldn't be extending non-service objects with your
> service objects.  Composition is definitely the way to go in that
> scenario.

In this case the extension is a "root component" that provides some basic
services to all CFCs.  It's documented here if you care:

http://www.depressedpress.com/depressedpress/Content/Development/ColdFusion/
DPLibraries/Documentation/DocViewer.cfm?Component=cfc_DepressedPress.DP_Comp
onent

It has things like dump and error management methods, generic getter/setter
methods and so forth - nothing application specific at all.

I'm not sure if this is the right way to do things... but it does work fine
for me (at least until now!)  ;^)

Jim Davis





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214243
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to