Adapt plugin to latest its-base
Given latest its-base introduces ItsFacadeFactory as a way of tunneling
project information between its-base and its derivative plugins, this
factory needs to be bound to the SingeItsServer implementation in order
to keep backward compatibility.
Change-Id: I8d0ab56ec1c23939623df84abf47fc5543863b3a
diff --git a/src/main/java/com/googlesource/gerrit/plugins/its/storyboard/StoryboardModule.java b/src/main/java/com/googlesource/gerrit/plugins/its/storyboard/StoryboardModule.java
index 5d809b8..e297747 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/its/storyboard/StoryboardModule.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/its/storyboard/StoryboardModule.java
@@ -26,6 +26,8 @@
import com.googlesource.gerrit.plugins.its.base.ItsHookModule;
import com.googlesource.gerrit.plugins.its.base.its.ItsFacade;
+import com.googlesource.gerrit.plugins.its.base.its.ItsFacadeFactory;
+import com.googlesource.gerrit.plugins.its.base.its.SingleItsServer;
public class StoryboardModule extends AbstractModule {
@@ -51,6 +53,7 @@
log.info("Storyboard is configured as ITS");
bind(ItsFacade.class).toInstance(new StoryboardItsFacade(
pluginName, gerritConfig));
+ bind(ItsFacadeFactory.class).to(SingleItsServer.class);
install(new ItsHookModule(pluginName, pluginCfgFactory));
}
}