You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jclouds.apache.org by an...@apache.org on 2014/01/17 16:34:02 UTC
git commit: Adding logging to BinderUtils.bindHttpApiProvider
Updated Branches:
refs/heads/JCLOUDS-427 [created] 511fec7d5
Adding logging to BinderUtils.bindHttpApiProvider
Project: http://git-wip-us.apache.org/repos/asf/jclouds/repo
Commit: http://git-wip-us.apache.org/repos/asf/jclouds/commit/511fec7d
Tree: http://git-wip-us.apache.org/repos/asf/jclouds/tree/511fec7d
Diff: http://git-wip-us.apache.org/repos/asf/jclouds/diff/511fec7d
Branch: refs/heads/JCLOUDS-427
Commit: 511fec7d50a07181adb08d26fbafd52cda3caa31
Parents: 05c2986
Author: Andrew Phillips <an...@apache.org>
Authored: Fri Jan 17 10:33:23 2014 -0500
Committer: Andrew Phillips <an...@apache.org>
Committed: Fri Jan 17 10:33:23 2014 -0500
----------------------------------------------------------------------
core/src/main/java/org/jclouds/rest/config/BinderUtils.java | 5 +++++
1 file changed, 5 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/jclouds/blob/511fec7d/core/src/main/java/org/jclouds/rest/config/BinderUtils.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/jclouds/rest/config/BinderUtils.java b/core/src/main/java/org/jclouds/rest/config/BinderUtils.java
index bf21dab..c535e44 100644
--- a/core/src/main/java/org/jclouds/rest/config/BinderUtils.java
+++ b/core/src/main/java/org/jclouds/rest/config/BinderUtils.java
@@ -103,7 +103,12 @@ public class BinderUtils {
}.where(new TypeParameter<S>() {
}, sync).where(new TypeParameter<A>() {
}, async);
+ try {
binder.bind(sync).toProvider(TypeLiteral.class.cast(TypeLiteral.get(token.getType())));
+ } catch(RuntimeException e) {
+ System.err.format("************ Caught '%s' trying to bind '%s' to '%s'. Input async class: '%s'", e.getMessage(), TypeLiteral.get(token.getType()), async);
+ throw e;
+ }
}
/**