> + * Configures the compute service classes for the DigitalOcean API.
> + *
> + * @author Sergi Castro
> + * @author Ignasi Barrera
> + */
> +public class DigitalOceanComputeServiceContextModule extends
> + ComputeServiceAdapterContextModule<Droplet, Size, Image, Region> {
> +
> + @Override
> + protected void configure() {
> + super.configure();
> +
> + bind(new TypeLiteral<ComputeServiceAdapter<Droplet, Size, Image,
> Region>>() {
> + }).to(DigitalOceanComputeServiceAdapter.class);
> +
> + bind(new TypeLiteral<Function<Droplet, NodeMetadata>>() {
Just to group them conceptually :) The adapter, the transformation functions,
etc.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/49/files#r9143627