> +import org.jclouds.domain.LocationScope;
> +import org.jclouds.location.suppliers.all.JustProvider;
> +
> +import com.google.common.base.Function;
> +import com.google.common.collect.ImmutableSet;
> +
> +/**
> + * Transforms an {@link Region} to the jclouds portable model.
> + *
> + * @author Sergi Castro
> + * @author Ignasi Barrera
> + */
> +@Singleton
> +public class RegionToLocation implements Function<Region, Location> {
> +
> + private final JustProvider justProvider;
It is the jclouds
[JustProvider](https://github.com/jclouds/jclouds/blob/master/core/src/main/java/org/jclouds/location/suppliers/all/JustProvider.java)
:) The typical location hierarchy is Provider > Region > Location.
This `JustProvider` supplier returns the "provider" location (DigitalOcean in
this case) that can be set as the parent of all regions, to make them properly
scoped to the provider.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/49/files#r9171000