Mocking Objects with ColdBox Annotations
Luis Majano |
June
12,
2009
One of the nice things about ColdBox's model integration features are the ability to inject objects by using annotations via the cfproperty tag. This gives a cleaner API to objects that don't really need to expose setters just for dependency injection purposes. Why? well, in MY opinion, objects should be shy and only expose what they need to expose to the outside world. By leveraging annotations, I can cleanly define the dependencies of my object and what is even better, it can...