Apologies if this is obvious (cs newb), but a section of an app I'm working
on has a functional areas implemented as directories, each containing
model.cfc, view.cfc, and controller.cfc files.

Is there some way to generically tell ColdSpring about that, so each
controller gets injected with its model and view?

Metaphorically, it'd be something like this:

---
<bean id="*.controller" class="*.controller">
        <constructor-arg name="model">
                <ref bean="*.model" />
        </constructor-arg>
        <constructor-arg name="view">
                <ref bean="*.view" />
        </constructor-arg>
</bean>
---

Or does each view and controller have to be explicitly spelled out, and each
controller explicitly injected with them? Some other approach?

Thanks very much,

Dave Merrill



Reply via email to