Update the ThreadLocal based scopes to use RequestContext.
Bound the ThreadLocalRequestContext module, which makes the CurrentUser available in the Global module. Removed any binding in the scopes that provided the CurrentUser. Updated all of the scopes to propagate the RequestContext. The PerThreadRequestScope.Propagator allows scoping callables to enter a request context. Change-Id: Idf682ed1d7485cf8c9cdd22cd89bfe1ad5296880
This commit is contained in:
		| @@ -89,7 +89,7 @@ class NoShell implements Factory<Command> { | ||||
|     } | ||||
|  | ||||
|     public void setSession(final ServerSession session) { | ||||
|       this.context = new Context(session.getAttribute(SshSession.KEY), ""); | ||||
|       this.context = sshScope.newContext(session.getAttribute(SshSession.KEY), ""); | ||||
|     } | ||||
|  | ||||
|     public void start(final Environment env) throws IOException { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Colby Ranger
					Colby Ranger