I have used ColdSpring in several production applications and works
really for this.

--Kurt

On 10/31/05, Chris Scott <[EMAIL PROTECTED]> wrote:
> As your model becomes more complex you will probably begin to deal with a
> lot of wiring code. You might want to take a look at ColdSpring and see how
> it accomplishes all the wiring through what is called Dependency Injection.
> You describe the relationships of collaborating cfcs in an xml config file
> and coldspring handles the wiring of those components and their lifecycle as
> singletons (or non-singletons). Coldspring also differs from the approach
> you guys are describing for retrieving cfcs, where instead of calling
> createUser(), createProductManager(), etc. you would simply call
> getBean('user'), getBean('productManager'), simplifying the api greatly. If
> you're looking to role your own system for the fun and challenge of it, by
> all means, go for it! I'm just letting you know, there's a fully developed
> system out there that handles these issues quite gracefully.
>
>
> On Oct 31, 2005, at 6:49 AM, Scratch wrote:
>
>
>
> Also, if you use a factory pattern, should all CFCs related to another CFC
> be called in the factory and then passed into the CFC rather than just
> creating them from inside the CFC…
>
>
>
> For example, I use a transfer object to hold my User data… so normally in my
> User init() method I would create the UserLTO – should I instead create the
> UserLTO in my Factory's createUser() method and pass it into User CFC as an
> argument?
>
>
>
> Thanks for time,
>
>
>
> Baz
>
>
> ________________________________
>
>
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> OfScratch
> Sent: Monday, October 31, 2005 6:42 AM
> To: [email protected]
> Subject: [CFCDev] Factory Pattern
>
>
>
> Hi guys,
>
>
>
> If you're using a factory pattern to create all your CFCs, how do you use it
> to create CFCs within other CFCs?
>
>
>
> Baz
>
>  ----------------------------------------------------------
> You are subscribed to cfcdev. To unsubscribe, send an email to
> [email protected] with the words 'unsubscribe cfcdev' as the subject of the
> email.
>
> CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
> (www.cfxhosting.com).
>
> An archive of the CFCDev list is available at
> www.mail-archive.com/[email protected]
> ----------------------------------------------------------
> You are subscribed to cfcdev. To unsubscribe, send an email to
> [email protected] with the words 'unsubscribe cfcdev' as the subject of the
> email.
>
> CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
> (www.cfxhosting.com).
>
> An archive of the CFCDev list is available at
> www.mail-archive.com/[email protected]
>

Reply via email to