May
21
2007
Brian Kotek on ColdSpring Best Practices
Posted by Joe Rinehart at 3:26 PM
0 comments - Categories:
Best Practices
It might be too broad of a title, but I couldn't think of anything better. If you're a fan of dependency injection / inversion of control, Brian's put up a good (and short, to boot) post on using its full potential to eliminate dependencies on concrete types, favoring interfaces.
His example points out the difference between using ColdSpring to compose a service object with another factory (such as Reactor) instead of using ColdSpring's factory-bean to compose your service object with an interface that would be implemented by a Reactor-generated object.