> +import java.util.Map;
> +
> +import static com.google.common.base.Preconditions.checkNotNull;
> +import static com.google.common.collect.Iterables.getOnlyElement;
> +
> +/**
> + * @author Andrea Turli
> + */
> +@Singleton
> +public class ContainerToNodeMetadata implements Function<Container,
> NodeMetadata> {
> +
> + @Resource
> + @Named(ComputeServiceConstants.COMPUTE_LOGGER)
> + protected Logger logger = Logger.NULL;
> +
> + private final ApiContext<DockerApi> context;
Try to avoid injecting the context. If you only need the endpoint, you can
inject the `ProviderMetadata` directly.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/57/files#r11266257