> +public class ContainerToNodeMetadata implements Function<Container, 
> NodeMetadata> {
> +
> +   @Resource
> +   @Named(ComputeServiceConstants.COMPUTE_LOGGER)
> +   protected Logger logger = Logger.NULL;
> +
> +   private final ApiContext<DockerApi> context;
> +
> +   @Inject
> +   public ContainerToNodeMetadata(ApiContext<DockerApi> context) {
> +      this.context = context;
> +   }
> +
> +   @Override
> +   public NodeMetadata apply(Container container) {
> +      // TODO extract group and name from description?

You can inject the groupNamingConvention for this purpose.

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

Reply via email to