I've inherited some code from an internal app that, when the user needs to change a an environment (debug -> staging for example), the app restarts. I was told it was because the components were injected at Application.onCreate() time. Is there no way to re-build the dependency graph? If not, should I abstract it and implement some kind of Service Locator Pattern?