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