Issue 452: revised supplier

This commit is contained in:
Adrian Cole 2011-01-24 12:35:56 -08:00
parent 35d736a3ca
commit c8e743c0e1
1 changed files with 9 additions and 3 deletions

View File

@ -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<Map<String, Node>> provideNodeList(@Provider URI uri) {
return new Supplier<Map<String, Node>> (){
@Override
public Map<String, Node> get() {
// TODO parse uri into list, using yaml or something
return Suppliers.<Map<String, Node>> ofInstance(ImmutableMap.<String, Node> of());
return ImmutableMap.<String, Node> of();
}
};
}
@Provides