Is that Dependency Injection or Service Locator Pattern?