diff options
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/standalone/StandaloneModule.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/standalone/StandaloneModule.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/standalone/StandaloneModule.java b/src/main/java/com/google/devtools/build/lib/standalone/StandaloneModule.java index 06bffd0bd8..02d6a3a39f 100644 --- a/src/main/java/com/google/devtools/build/lib/standalone/StandaloneModule.java +++ b/src/main/java/com/google/devtools/build/lib/standalone/StandaloneModule.java @@ -13,6 +13,7 @@ // limitations under the License. package com.google.devtools.build.lib.standalone; +import com.google.common.collect.ImmutableList; import com.google.common.eventbus.Subscribe; import com.google.devtools.build.lib.actions.ActionContextConsumer; import com.google.devtools.build.lib.actions.ActionContextProvider; @@ -34,16 +35,17 @@ public class StandaloneModule extends BlazeModule { * Returns the action context provider the module contributes to Blaze, if any. */ @Override - public ActionContextProvider getActionContextProvider() { - return new StandaloneContextProvider(runtime, buildRequest); + public Iterable<ActionContextProvider> getActionContextProviders() { + return ImmutableList.<ActionContextProvider>of( + new StandaloneContextProvider(runtime, buildRequest)); } /** * Returns the action context consumer the module contributes to Blaze, if any. */ @Override - public ActionContextConsumer getActionContextConsumer() { - return actionContextConsumer; + public Iterable<ActionContextConsumer> getActionContextConsumers() { + return ImmutableList.of(actionContextConsumer); } @Override |