Ticket #381 (closed enhancement: fixed)
Support bean injection for helper components
| Reported by: | boomfish | Owned by: | boomfish |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.1 Maintenance Final |
| Version: | 3.1.185 | Severity: | normal |
| Keywords: | Cc: |
Description
Model-Glue 3 supports injection of ColdSpring beans into controllers via metadata (bean attribute in cfcomponent) and autowiring (setter methods). It would be nice if the framework performed this same bean injection on helper CFCs.
Helper CFCs are created by the "modelglue.helperInjector" bean and Controller bean injection is done by the "modelglue.controllerBeanInjector" bean. If we inject the controllerBeanInjector into the helperInjector, the helperInjector could then use the controllerBeanInjector to inject ColdSpring beans into any CFCs it injects into the helpers scope.
And yes, I did want to see how many times I could include "inject" in a single sentence :-)
![(please configure the [header_logo] section in trac.ini)](/ModelGlue.com/trac.cgi/chrome/site/your_project_logo.png)