I have run into this situation already have found it easiest to have CS inject the reactorFactory into my service layer. In the service layer it then uses the reactor factory to grab the gateways an record objects it needs. I can post a sample if anyone is interested.

--Kurt

On 10/27/06, Clint Miller <[EMAIL PROTECTED]> wrote:
This is an interesting question.  And a good forum for this follow on
question: how would you use ColdSpring to inject other objects into
Reactor-created ones--such as injecting a shopping cart into a user
record that is created by Reactor?

I think there are some interesting opportunities for more integration
between Reactor and ColdSpring (probably from the Reactor side,
correct?)

What are the best practices?  Well worded, Scott.

Clint

On Oct 27, 2006, at 7:13 AM, Scott Arbeitman wrote:

> I'm working on a project using ColdSpring, and I'd like to use an
> ORM framework (preferably Reactor). I'd like to inject Reactor
> objects into the service layer, but the way Reactor works, if I
> want to use record objects, it seems I have to inject an instance
> of the Reactor factory and create record objects from there. This
> differs from injecting home grown DAO's or gateways into a service,
> where the service implementation can be separated from the way the
> DAO's were generated.
>
> Does anyone have any suggestions on how best to incorporate this
> style of ORM (basically an Active Record pattern) using ColdSpring?
> What would best practice be?
>





Reply via email to