> + */
> +@Singleton
> +public class DockerComputeServiceAdapter implements
> +        ComputeServiceAdapter<Container, Hardware, Image, Location> {
> +
> +   @Resource
> +   @Named(ComputeServiceConstants.COMPUTE_LOGGER)
> +   protected Logger logger = Logger.NULL;
> +
> +   private final DockerApi api;
> +   private final ApiContext<DockerApi> context;
> +
> +   @Inject
> +   public DockerComputeServiceAdapter(DockerApi api, ApiContext<DockerApi> 
> context) {
> +      this.api = checkNotNull(api, "api");
> +      this.context = context;

Do you really need the context? You could better inject directly the Identity 
and the Credential supplier.

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

Reply via email to