Thanks for jumping in Sean.

There's already a basic ObjectFactory of our own in use in the section of
the app I'm considering. All controllers in this part of the world use it,
and it's early enough that it would be easy to swap in ColdSpring instead.

Re overall frameworks, if I were starting a new app from scratch, I most
likely would head for Model-Glue. Here though, the bits in question are a
new section of a larger project, where I'm looking for a lighter-weight,
less all-encompassing approach, basically a more full-featured version of
that existing ObjectFactory.

So far, it seems like hand wiring this section of life makes sense, either
with ColdSpring or our existing thing.

Dave Merrill


> -----Original Message-----
> From: [email protected]
> [mailto:[EMAIL PROTECTED] Behalf Of Sean
> Corfield
> Sent: Monday, September 04, 2006 3:25 PM
> To: [email protected]
> Subject: [coldspring-dev] Wiring up all controllers to know about their
> models and views
>
>
> On 9/4/06, Dave Merrill <[EMAIL PROTECTED]> wrote:
> > I'm looking for a way to wire every controller in
> MyApp/areas/SomeArea to
> > the model and view in the same directory as the controller. As
> I think about
> > it, there isn't anything that looks like 'rules' for this kind
> of pattern
> > matching.
>
> Note that the autowiring is really a feature of the *frameworks* like
> Mach II (via a plugin) and Model-Glue (built into the core) that know
> how to look for dependencies in their controllers and ask ColdSpring
> for matching beans that they can autowire.
>
> Unless you have a setup where all your controllers are managed by
> ColdSpring and you can specify the dependencies in the XML file, I
> don't think you're going to get the automation you're looking for.
>
> And it does, perhaps, beg the question of why you're not looking at
> Model-Glue (or Mach II) to help with automation of other aspects of
> your application?
> --
> Sean A Corfield -- (904) 302-SEAN
> An Architect's View -- http://corfield.org/
>
> "If you're not annoying somebody, you're not really alive."
> -- Margaret Atwood
>
>



Reply via email to