Re: Best way to replace dependencies ?

2015-01-22 Thread Nate Bauernfeind
Sounds like this depends on exactly what behavior you want. You can overwrite bindings in a module with an Override's module. See: http://stackoverflow.com/questions/483087/overriding-binding-in-guice You could use a PrivateModules to divide your object graph to control which chunks get which

Best way to replace dependencies ?

2015-01-22 Thread Kevin Burton
Is there a good pattern to *replace* dependencies with new bindings? During our init, I have the need to replace a standard output logger, with a log4j logger... It only needs to happen once. I was thinking of having some sort of ReplaceableProvider that has a set() method and uses an