> @@ -58,9 +65,40 @@ public Factory(BackoffLimitedRetryHandler 
> backoffLimitedRetryHandler, Injector i
>  
>        @Override
>        public SshClient create(HostAndPort socket, LoginCredentials 
> credentials) {
> -         SshClient client = new SshjSshClient(backoffLimitedRetryHandler, 
> socket, credentials, timeout);
> +         SshClient client = new SshjSshClient(backoffLimitedRetryHandler, 
> socket, credentials, timeout, injector.getInstance(Connector.class));

Rather than an explicit call to an injector here (which isn't "terrible", I 
should add), create a method in the module that `@Provides` the connector by 
creating a new instance of AgentProvider?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/312/files#r10924341

Reply via email to