mirror of https://github.com/apache/jclouds.git
reverted mistaken changes to ComputeServiceContextBuilder
This commit is contained in:
parent
3c776b8768
commit
f04ef5ad4c
|
@ -48,7 +48,7 @@ public abstract class ComputeServiceContextBuilder<S, A> extends RestContextBuil
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Injector buildInjector() {
|
public Injector buildInjector() {
|
||||||
addHostModuleIfNotPresent();
|
addImageResolutionModuleIfNotPresent();
|
||||||
return super.buildInjector();
|
return super.buildInjector();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -67,7 +67,7 @@ public abstract class ComputeServiceContextBuilder<S, A> extends RestContextBuil
|
||||||
asyncClientType)));
|
asyncClientType)));
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void addHostModuleIfNotPresent() {
|
protected void addImageResolutionModuleIfNotPresent() {
|
||||||
if (!Iterables.any(modules, new Predicate<Module>() {
|
if (!Iterables.any(modules, new Predicate<Module>() {
|
||||||
public boolean apply(Module input) {
|
public boolean apply(Module input) {
|
||||||
return input.getClass().isAnnotationPresent(ResolvesImages.class);
|
return input.getClass().isAnnotationPresent(ResolvesImages.class);
|
||||||
|
|
Loading…
Reference in New Issue