I have a class that has been configured to be a Singleton, like this:
@Singleton
public class MySingleton {
public MySingleton(MyDependency dependencyObj) {
// ...
}
}
Is there a way to get a new instance of MyDependency
injected into the single instance of MySingleton
each time Guice provides it to some other class?
I can't make any changes to MySingleton
(e.g., to make it something other than a Singleton)