> +import org.jclouds.profitbricks.compute.function.ImageToImage;
> +import org.jclouds.profitbricks.compute.function.ServerToNodeMetadata;
> +import org.jclouds.profitbricks.compute.function.StorageToVolume;
> +
> +import com.google.common.base.Function;
> +import com.google.inject.TypeLiteral;
> +
> +public class ProfitBricksComputeServiceContextModule extends
> +     ComputeServiceAdapterContextModule<Server, Hardware, Image, DataCenter> 
> {
> +
> +   @Override
> +   protected void configure() {
> +      super.configure();
> +
> +      // FIXME Not working
> +      install(new LocationsFromComputeServiceAdapterModule<Server, Hardware, 
> Image, DataCenter>() {

I think you have to qualify the supplier as `@Memoized` in the 
`ServerToNodeMetadata`. Something like:
```java
@Inject
 ServerToNodeMetadata(Function<Storage, Volume> fnVolume,
      @Memoized Supplier<Set<? extends Location>> locationsSupply) {
```


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

Reply via email to