reverted mistaken changes to ComputeServiceContextBuilder

This commit is contained in:
David Ribeiro Alves 2012-03-10 19:58:02 +00:00
parent 3c776b8768
commit f04ef5ad4c
1 changed files with 2 additions and 2 deletions

View File

@ -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);