> +              });
> +      return set;
> +   }
> +
> +   private HashSet<NetworkComponent> getNetworkComponents(VirtualGuest 
> virtualGuest) {
> +      if(virtualGuest.getVirtualGuestNetworkComponents() == null) return 
> null;
> +      return 
> Sets.newHashSet(Iterables.transform(virtualGuest.getVirtualGuestNetworkComponents(),
> +              new Function<VirtualGuestNetworkComponent, NetworkComponent>() 
> {
> +                 @Override
> +                 public NetworkComponent apply(VirtualGuestNetworkComponent 
> input) {
> +                    return new NetworkComponent(input.getSpeed());
> +                 }
> +              }));
> +   }
> +
> +   private static class TemplateObject {

Why are all these classes here? Are we creating something like a "parallel 
domain model" here? I saw the explanation about the Binder above, but if this 
is really what the SoftLayer API expects on the Create call, shouldn't these be 
domain objects, then?

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

Reply via email to