I'm starting a new ecommerce project and I want it to be flexible
enough to be able to reuse with multiple sites, so (after reading
Hal's article) I've settled on using decorators for both my products
and users. As I was writing up my packages & classes, I noticed I had
created DAO/Gateway objects for each decorator, and one Factory per
class (product or user) to build the objects. Is this a normal
approach? I mean, when you want to persist decorated objects, do you
need data layer objects for each? I've done something similar before,
where the base class DAO was a superclass of the subclass DAO's, but I
didn't know if using decorators changed the equation. I don't want to
get buried under unnecessary objects, but I don't want to get locked
into dependency hell either! :)
----------------------------------------------------------
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