diff --git a/compute/src/main/java/org/jclouds/compute/callables/RunScriptOnNode.java b/compute/src/main/java/org/jclouds/compute/callables/RunScriptOnNode.java index 2c17e84a3e..2fa83ac9d3 100644 --- a/compute/src/main/java/org/jclouds/compute/callables/RunScriptOnNode.java +++ b/compute/src/main/java/org/jclouds/compute/callables/RunScriptOnNode.java @@ -27,6 +27,7 @@ import org.jclouds.scriptbuilder.domain.Statement; import com.google.common.annotations.Beta; import com.google.common.util.concurrent.ListenableFuture; +import com.google.inject.ImplementedBy; /** * Separates out how one implements the ability to run a script on a node. @@ -36,6 +37,7 @@ import com.google.common.util.concurrent.ListenableFuture; @Beta public interface RunScriptOnNode extends Callable { + @ImplementedBy(org.jclouds.compute.config.BaseComputeServiceContextModule.RunScriptOnNodeFactoryImpl.class) public interface Factory { RunScriptOnNode create(NodeMetadata node, Statement script, RunScriptOptions options); diff --git a/compute/src/main/java/org/jclouds/compute/config/BaseComputeServiceContextModule.java b/compute/src/main/java/org/jclouds/compute/config/BaseComputeServiceContextModule.java index 9d761a1ae2..e405af259d 100644 --- a/compute/src/main/java/org/jclouds/compute/config/BaseComputeServiceContextModule.java +++ b/compute/src/main/java/org/jclouds/compute/config/BaseComputeServiceContextModule.java @@ -104,8 +104,6 @@ public abstract class BaseComputeServiceContextModule extends AbstractModule { install(new PersistNodeCredentialsModule()); - bind(RunScriptOnNode.Factory.class).to(RunScriptOnNodeFactoryImpl.class); - install(new FactoryModuleBuilder().implement(new TypeLiteral>() { }, CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap.class) .implement(new TypeLiteral, Void>>() { @@ -124,7 +122,7 @@ public abstract class BaseComputeServiceContextModule extends AbstractModule { } @Singleton - static class RunScriptOnNodeFactoryImpl implements RunScriptOnNode.Factory { + public static class RunScriptOnNodeFactoryImpl implements RunScriptOnNode.Factory { static interface Factory {