De-couple PluginModule and PluginRestApiModule registration
The registration of PluginModule and PluginRestApiModule needs to be decoupled because they are conceptually separate, even if one (PluginModule) needs to happen before the other (PluginRestApiModule). This is a pre-requisite for the next change I87da6ac6 where the PluginModule registration needs to be moved around without necessarily having an impact on the PluginRestApiModule. Change-Id: I80fee34e5bda5afb480c8d103e6e83b8ae11c8eb
This commit is contained in:
@@ -61,6 +61,7 @@ import com.google.gerrit.server.mime.MimeUtil2Module;
|
||||
import com.google.gerrit.server.notedb.ConfigNotesMigration;
|
||||
import com.google.gerrit.server.patch.DiffExecutorModule;
|
||||
import com.google.gerrit.server.plugins.PluginGuiceEnvironment;
|
||||
import com.google.gerrit.server.plugins.PluginModule;
|
||||
import com.google.gerrit.server.plugins.PluginRestApiModule;
|
||||
import com.google.gerrit.server.schema.DataSourceModule;
|
||||
import com.google.gerrit.server.schema.DataSourceProvider;
|
||||
@@ -321,6 +322,7 @@ public class WebAppInitializer extends GuiceServletContextListener implements Fi
|
||||
modules.add(cfgInjector.getInstance(MailReceiver.Module.class));
|
||||
modules.add(new SmtpEmailSender.Module());
|
||||
modules.add(new SignedTokenEmailTokenVerifier.Module());
|
||||
modules.add(new PluginModule());
|
||||
modules.add(new PluginRestApiModule());
|
||||
modules.add(new RestCacheAdminModule());
|
||||
modules.add(new GpgModule(config));
|
||||
|
Reference in New Issue
Block a user