mirror of https://github.com/apache/jclouds.git
Issue 452: revised supplier
This commit is contained in:
parent
35d736a3ca
commit
c8e743c0e1
|
@ -31,7 +31,6 @@ import org.jclouds.concurrent.SingleThreaded;
|
||||||
import org.jclouds.location.Provider;
|
import org.jclouds.location.Provider;
|
||||||
|
|
||||||
import com.google.common.base.Supplier;
|
import com.google.common.base.Supplier;
|
||||||
import com.google.common.base.Suppliers;
|
|
||||||
import com.google.common.collect.ImmutableMap;
|
import com.google.common.collect.ImmutableMap;
|
||||||
import com.google.inject.Provides;
|
import com.google.inject.Provides;
|
||||||
|
|
||||||
|
@ -51,8 +50,15 @@ public class BYONComputeServiceContextModule extends
|
||||||
@Provides
|
@Provides
|
||||||
@Singleton
|
@Singleton
|
||||||
Supplier<Map<String, Node>> provideNodeList(@Provider URI uri) {
|
Supplier<Map<String, Node>> provideNodeList(@Provider URI uri) {
|
||||||
// TODO parse uri into list, using yaml or something
|
return new Supplier<Map<String, Node>> (){
|
||||||
return Suppliers.<Map<String, Node>> ofInstance(ImmutableMap.<String, Node> of());
|
|
||||||
|
@Override
|
||||||
|
public Map<String, Node> get() {
|
||||||
|
// TODO parse uri into list, using yaml or something
|
||||||
|
return ImmutableMap.<String, Node> of();
|
||||||
|
}
|
||||||
|
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@Provides
|
@Provides
|
||||||
|
|
Loading…
Reference in New Issue