PluginGuiceEnvironment: Make getHttpModule public

We need to get the HTTP module to populate the plugin's HTTP injector,
same as in ServerPlugin#startPlugin in core. (One would be forgiven for
assuming we already had this working on googlesource.com, but we
didn't.)

Change-Id: If1f321625877dd03a01a6074a3b8336f74c76778
This commit is contained in:
Dave Borowitz
2019-03-27 10:37:37 -07:00
parent 4d6f3309d0
commit 49067527b6

View File

@@ -23,6 +23,7 @@ import com.google.common.collect.LinkedListMultimap;
import com.google.common.collect.ListMultimap;
import com.google.common.collect.Lists;
import com.google.gerrit.common.Nullable;
import com.google.gerrit.common.UsedAt;
import com.google.gerrit.extensions.annotations.RootRelative;
import com.google.gerrit.extensions.events.LifecycleListener;
import com.google.gerrit.extensions.registration.DynamicItem;
@@ -226,7 +227,8 @@ public class PluginGuiceEnvironment {
return httpModule != null;
}
Module getHttpModule() {
@UsedAt(UsedAt.Project.GOOGLE)
public Module getHttpModule() {
return httpModule;
}