Ticket #381 (closed enhancement: fixed)

Opened 16 years ago

Last modified 14 years ago

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 :-)

Change History

Changed 16 years ago by boomfish

  • owner set to boomfish
  • status changed from new to assigned
  • milestone changed from 3.2 to 3.1 Maintenance Final

Changed 16 years ago by boomfish

  • status changed from assigned to closed
  • resolution set to fixed

Fixed in SVN revision 271.

Note: See TracTickets for help on using tickets.