From c8e743c0e1488d70876f8947104743dd0f583c72 Mon Sep 17 00:00:00 2001 From: Adrian Cole Date: Mon, 24 Jan 2011 12:35:56 -0800 Subject: [PATCH] Issue 452: revised supplier --- .../byon/config/BYONComputeServiceContextModule.java | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/sandbox-apis/byon/src/main/java/org/jclouds/byon/config/BYONComputeServiceContextModule.java b/sandbox-apis/byon/src/main/java/org/jclouds/byon/config/BYONComputeServiceContextModule.java index 35583af156..e093ef4577 100644 --- a/sandbox-apis/byon/src/main/java/org/jclouds/byon/config/BYONComputeServiceContextModule.java +++ b/sandbox-apis/byon/src/main/java/org/jclouds/byon/config/BYONComputeServiceContextModule.java @@ -31,7 +31,6 @@ import org.jclouds.concurrent.SingleThreaded; import org.jclouds.location.Provider; import com.google.common.base.Supplier; -import com.google.common.base.Suppliers; import com.google.common.collect.ImmutableMap; import com.google.inject.Provides; @@ -51,8 +50,15 @@ public class BYONComputeServiceContextModule extends @Provides @Singleton Supplier> provideNodeList(@Provider URI uri) { - // TODO parse uri into list, using yaml or something - return Suppliers.> ofInstance(ImmutableMap. of()); + return new Supplier> (){ + + @Override + public Map get() { + // TODO parse uri into list, using yaml or something + return ImmutableMap. of(); + } + + }; } @Provides