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: Ic98ac629f71cf0aeb216958146134d278d9ada85
diff --git a/src/main/java/com/googlesource/gerrit/plugins/its/rtc/RTCModule.java b/src/main/java/com/googlesource/gerrit/plugins/its/rtc/RTCModule.java
index 0e031e4..65fbad0 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/its/rtc/RTCModule.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/its/rtc/RTCModule.java
@@ -21,6 +21,8 @@
import com.google.inject.Scopes;
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;
import java.util.Set;
import org.eclipse.jgit.lib.Config;
import org.slf4j.Logger;
@@ -49,6 +51,7 @@
if (isConfigPresent(pluginName)) {
LOG.info("RTC is configured as ITS");
bind(ItsFacade.class).to(RTCItsFacade.class).in(Scopes.SINGLETON);
+ bind(ItsFacadeFactory.class).to(SingleItsServer.class);
install(new ItsHookModule(pluginName, pluginCfgFactory));
}