Make SshScope accessors on a Singleton object.
SshScope used static methods to set the context, but the next change will require the ThreadLocalRequestContext to be injected in order to set the request scope. SshScope was updated to be a Singleton injected into the required objects. Change-Id: I20d4a7253edfa06f85af95e27980e4d6b4d160e2
This commit is contained in:
@@ -82,6 +82,7 @@ public class SshModule extends FactoryModule {
|
||||
protected void configure() {
|
||||
bindScope(RequestScoped.class, SshScope.REQUEST);
|
||||
bind(RequestScopePropagator.class).to(SshScope.Propagator.class);
|
||||
bind(SshScope.class).in(SINGLETON);
|
||||
|
||||
configureRequestScope();
|
||||
configureCmdLineParser();
|
||||
|
Reference in New Issue
Block a user