> +      @Inject ZoneIdToURIFromRegionList(@Memoized Supplier<List<Region>> 
> regions) {
> +         this.regions = regions;
> +      }
> +
> +      @Override public Map<String, Supplier<URI>> get() {
> +         ImmutableMap.Builder<String, Supplier<URI>> result = 
> ImmutableMap.builder();
> +         for (Region region : regions.get()) {
> +            for (URI input : region.zones()) {
> +               result.put(toName(input), Suppliers.ofInstance(input));
> +            }
> +         }
> +         return result.build();
> +      }
> +   }
> +
> +   /**

This bloats the class a bit, and can be reused for EC2 etc. I can follow-up 
later and make that happen.

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

Reply via email to