Gotcha :)
So what's the reasoning behind the dislike of circular dependencies? From
what I can tell, they're unavoidable in my case...
I have a couple of objects, for example: Domains and DomainEmails. When a
call to the Domains.deleteDomain() method is called, I need to be able to
clear out all the DomainEmail records for that domain -- so I call the
DomainEmails.deleteDomainEmail() method for every record that exists for
that particular domain. Domains requires an instance of("is dependent on")
the DomainEmails CFC to make that call. DomainEmails also requires a
Domains CFC -- when I create a DomainEmail record, I want to make sure that
the domainID it's being created for actually exists. To do that, I need a
reference to my Domains.getAllDomains() method. That's circular depedency
:( But I don't see any way around it, unless I wanted to live with sloppy
deletes and inserts...
Jonathon
-----Original Message-----
From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of Tom Chiverton
Sent: Wednesday, June 20, 2007 3:33 AM
To: [email protected]
Subject: [coldspring-dev] newbie question!
On Tuesday 19 Jun 2007, Jonathon Stierman wrote:
> My one "issue" with Setter injection is that the dependencies aren't
> guaranteed to be set by the time I need them (hence why I liked the
> constructor-arg property). What do you guys do for ensuring that your
> dependencies are in place when you use setter injection?
What Peter said :-)
But we only ever had to do it once, and it bothers me we had to do it.
--
Tom Chiverton
Helping to interactively e-enable transparent relationships
on: http://thefalken.livejournal.com
****************************************************
This email is sent for and on behalf of Halliwells LLP.
Halliwells LLP is a limited liability partnership registered in England and
Wales under registered number OC307980 whose registered office address is at
St James's Court Brown Street Manchester M2 2JF. A list of members is
available for inspection at the registered office. Any reference to a
partner in relation to Halliwells LLP means a member of Halliwells LLP.
Regulated by the Law Society.
CONFIDENTIALITY
This email is intended only for the use of the addressee named above and may
be confidential or legally privileged. If you are not the addressee you
must not read it and must not use any information contained in nor copy it
nor inform any person other than Halliwells LLP or the addressee of its
existence or contents. If you have received this email in error please
delete it and notify Halliwells LLP IT Department on 0870 365 8008.
For more information about Halliwells LLP visit www.halliwells.com.