In Spring, if I want to have one set of objects for production, and another for local development/testing. I could use the @Profile
annotation to designate the different classes, and switch between them by providing a system property when starting the app.
Is there anything like this in Guice, or do I need to manually check some property myself and load a different set of modules when bootstrapping my Injector
?