From ab1de34bcd6a0d73d47ab338a99f5ac05f766379 Mon Sep 17 00:00:00 2001 From: Andrew Donald Kennedy Date: Fri, 16 Mar 2012 10:47:54 +0000 Subject: [PATCH] Issue 830: Add AdminVdcClient to DELEGATE_MAP in VCloudDirectorRestClientModule --- .../v1_5/config/VCloudDirectorRestClientModule.java | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/labs/vcloud-director/src/main/java/org/jclouds/vcloud/director/v1_5/config/VCloudDirectorRestClientModule.java b/labs/vcloud-director/src/main/java/org/jclouds/vcloud/director/v1_5/config/VCloudDirectorRestClientModule.java index 881ab3b383..cff21bb320 100644 --- a/labs/vcloud-director/src/main/java/org/jclouds/vcloud/director/v1_5/config/VCloudDirectorRestClientModule.java +++ b/labs/vcloud-director/src/main/java/org/jclouds/vcloud/director/v1_5/config/VCloudDirectorRestClientModule.java @@ -17,8 +17,8 @@ */ package org.jclouds.vcloud.director.v1_5.config; -import static com.google.common.base.Throwables.*; -import static org.jclouds.rest.config.BinderUtils.*; +import static com.google.common.base.Throwables.propagate; +import static org.jclouds.rest.config.BinderUtils.bindClientAndAsyncClient; import java.net.URI; import java.util.Map; @@ -46,6 +46,8 @@ import org.jclouds.vcloud.director.v1_5.features.AdminCatalogAsyncClient; import org.jclouds.vcloud.director.v1_5.features.AdminCatalogClient; import org.jclouds.vcloud.director.v1_5.features.AdminOrgAsyncClient; import org.jclouds.vcloud.director.v1_5.features.AdminOrgClient; +import org.jclouds.vcloud.director.v1_5.features.AdminVdcAsyncClient; +import org.jclouds.vcloud.director.v1_5.features.AdminVdcClient; import org.jclouds.vcloud.director.v1_5.features.CatalogAsyncClient; import org.jclouds.vcloud.director.v1_5.features.CatalogClient; import org.jclouds.vcloud.director.v1_5.features.GroupAsyncClient; @@ -98,7 +100,10 @@ import com.google.inject.name.Named; @ConfiguresRestClient public class VCloudDirectorRestClientModule extends RestClientModule { - public static final Map, Class> DELEGATE_MAP = ImmutableMap., Class> builder()// + public static final Map, Class> DELEGATE_MAP = ImmutableMap., Class>builder() + .put(AdminCatalogClient.class, AdminCatalogAsyncClient.class) + .put(AdminOrgClient.class, AdminOrgAsyncClient.class) + .put(AdminVdcClient.class, AdminVdcAsyncClient.class) .put(CatalogClient.class, CatalogAsyncClient.class) .put(NetworkClient.class, NetworkAsyncClient.class) .put(OrgClient.class, OrgAsyncClient.class) @@ -111,8 +116,6 @@ public class VCloudDirectorRestClientModule extends RestClientModule