Fair enough Jared. I was really referring to this:

I am not sure my CFC's up to this point would play
well with ColdSpring. I think there are lots of places where I
could/should move methods into their own cfc!

I just wanted him to understand that ColdSpring doesn't care about one's
refactoring decisions (unless you start moving properties around of course,
but I don't think that is what he was talking about).

On 7/17/07, Jared Rypka-Hauer <[EMAIL PROTECTED]> wrote:

Brian... that's a bit too oversimplified.
At the very least you need:

An init() method which includes <cfreturn this />
setters for your properties or arguments to your init() method
CFCs that are thread-safe as singletons

If you don't know what any one of those 3 things are are or how to
implement them, don't use ColdSpring until you do. Gross digital harm may
ensue. ;)

J

PS - Reactor is ColdSpring friendly from the get-go, so if that's all you
want to use it for go ahead. If you're going to use your own CFCs, however,
I strongly recommend you know what you're doing before you crash a shared
server or drive your sysadmins utterly bonkers (and potentially really mess
up your users). :D


------------------------------------------------

Jared C. Rypka-Hauer

Continuum Media Group LLC

http://www.web-relevant.com



On Jul 16, 2007, at 10:04 AM, Brian Kotek wrote:

ColdSpring doesn't really need anything for your CFCs to play well. If you
have CFCs you can use ColdSpring. Where your methods are or where you think
they should ideally go is a separate issue. ;-)

Internally, Reactor caches the following types of objects: Dao, Gateway,
Metadata, and Validator. So when you ask for any of these, Reactor only
creates them once, and then subsequent requests for a specific one of these
will return the cached instance.

Records are not cached. So when you ask for a Record object from the
factory, you will always get a new instance. So in your example the answer
is no. Each user has its own Record object with its own data.

Also just FYI, Iterator objects are not cached either.

Hopefully that helps.


-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
Reactor for ColdFusion Mailing List
[EMAIL PROTECTED]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --



-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[EMAIL PROTECTED]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Reply via email to