5 Ways Postsharp Can SOLIDify Your Code: Lazy Loading of Dependencies

added by gfraiteur
2/9/2011 8:30:18 AM

14 Kicks, 521 Views

Matthew Groves discusses how combining aspect-oriented programming and a service locator can provide an attractive alternative to dependency injection containers. Dependencies are loaded lazily when a property or field is first fetched, and there's no reference to the service locator in source code.