> I can show you an example of how I setup domain objects that are > composed of other objects if you like.
If I like? I would love! -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Kurt Wiersma Sent: Sunday, February 12, 2006 3:18 PM To: [email protected] Subject: [coldspring-dev] Many dependencies I think Chris and Dave agree with me when I say I don't think you should use CS for your domain objects. CS is great for service, DAO, and gateway objects. This doesn't mean you cannot use your domain objects with CS it is just that I don't believe it is best practice. I can show you an example of how I setup domain objects that are composed of other objects if you like. The key is to use a service layer if you aren't already. --Kurt On 2/12/06, Baz <[EMAIL PROTECTED]> wrote: > > Sorry for the double post, I'm just so excited with everything that's going > on. > > If I have a Contact CFC that can have multiple phone #'s, emails, bank > accounts, addresses, credit cards, echecks, profiles, etc., etc., etc. > Should I be injecting ALL of those dependent objects into Contact at init() > even though very often only 1 of the 15 gets used? Is this a good time to > inject the factory itself, instead of each dependent cfc, so that the > dependent objects are created on demand rather than at init()? Should there > perhaps not even be a dependency defined here and every objects gets called > separately on its own? > > I appreciate ANY thoughts or opinions you may have about this setup. > > Cheers, > Baz > > > >
