This question is intended for Chris Scott, but I thought I'd post it
here since it's about ColdSpring. :)

Chris, I attended your Model Management session at cf.objective()
(which was excellent, btw) and really got to thinking about
implementing a service layer in my current project. The example of
injecting the DAO and Gateway into the Service object makes a lot of
sense, but I am unsure what to do about Bean Management? I'm using
Reactor, so I can easily use the factory-method functionality to
create my gateway, but since Reactor uses the individual Record
objects as a kind of facade for the DAO, does it make any sense to use
ColdSpring to manage those objects using factory-method and
singleton="false"?

Furthermore, Doug just added Dictionary objects to the reactorFactory
so the more general question is, does it make sense to hide the
factory (Reactor) from the model (Service), and just be sure to inject
all possible dependencies (DAO/Record/Dictionary)? Or should the
Service be given access to the factory directly (at least in this
case)?

Thanks!
- Ken

PS - I also attended the AOP session and am really looking forward to
diving into that!

Reply via email to