Also, no ColdSping doesn't inject the beans every time, just on application startup. Since the Model-Glue controllers are singletons and are only created once, your beans are only injected once. Obviously there is a slight performance cost for it to do its autowire duties, but it's small and only paid once, so it's definitely worth it.
On 2/28/07, Brian Kotek <[EMAIL PROTECTED]> wrote: > > Its definitely useful to use ColdSpring to inject service layer CFCs into > your controllers, but I believe that Model-Glue does this automatically > anyway using the autowire feature. If Model-Glue sees a setter in the > controller CFC with a name that matches a ColdSpring bean name, it should > set it for you. Hope that helps. > > Brian > > On 2/28/07, Robert Rawlins <[EMAIL PROTECTED]> wrote: > > > > Hey Guys, > > > > I'm looking for a few tips on whether I should be using ColdSpring to > > inject beans into my Controller class, my fear is that if I have a whole > > bunch of setter methods inside my controller layer, with every call to my > > controller CS will push in a load of new bean instances and we're going to > > end up with performance problems, is that right? > > > > I would be very interested to hear how you guys deal with instanstation > > inside your controller methods for beans in the model layer. > > > > Whilst we're talking performance and ColdSpring, maybe you could explain > > the deal with the Auto-Wire feature, should I, as a 'best practice' be hand > > coding the bean relationships rather than relying on the autowire feature to > > be doing it for me? how much longer does it take CS to calculate its > > autowire relationships. > > > > Many thanks, > > > > Rob > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Macromedia ColdFusion MX7 Upgrade to MX7 & experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271005 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

