Here’s the Deal
Slant is powered by a community that helps you make informed decisions. Tell us what you’re passionate about to get your personalized feed and help others.
The wrong approach to Service Locator introduces an unnecessary dependency between the class and the container. It conceals what the dependencies really are as you have to check through the detail of the code to figure out what’s being resolved. See More
Built by Slant
Find the best product
Stop wasting time searching endlessly. Lustre recommends the best products at their lowest prices.
4.7 star rating
Add to Chrome - It's FreeAdd to Edge - It's FreeAdd to Firefox - It's FreeAdd to Opera - It's FreeAdd to Brave - It's FreeAdd to Safari - It's FreeTry now - it's free
Since the class doesn't have to know anything about the outside world, everything is more decoupled. If your class would have to fetch its own dependencies then it would have to know where to find them, and as a result, it would have to know about the larger application. See More