mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 00:15:44 +01:00
remove EventBus registration, because there is no subscribe
This commit is contained in:
@@ -44,8 +44,6 @@ import sonia.scm.SCMContext;
|
|||||||
import sonia.scm.ScmContextListener;
|
import sonia.scm.ScmContextListener;
|
||||||
import sonia.scm.ScmEventBusModule;
|
import sonia.scm.ScmEventBusModule;
|
||||||
import sonia.scm.ScmInitializerModule;
|
import sonia.scm.ScmInitializerModule;
|
||||||
import sonia.scm.Stage;
|
|
||||||
import sonia.scm.event.ScmEventBus;
|
|
||||||
import sonia.scm.plugin.DefaultPluginLoader;
|
import sonia.scm.plugin.DefaultPluginLoader;
|
||||||
import sonia.scm.plugin.Plugin;
|
import sonia.scm.plugin.Plugin;
|
||||||
import sonia.scm.plugin.PluginException;
|
import sonia.scm.plugin.PluginException;
|
||||||
@@ -141,13 +139,6 @@ public class BootstrapContextListener implements ServletContextListener {
|
|||||||
createContextListener(pluginDirectory);
|
createContextListener(pluginDirectory);
|
||||||
|
|
||||||
contextListener.contextInitialized(sce);
|
contextListener.contextInitialized(sce);
|
||||||
|
|
||||||
// register for restart events
|
|
||||||
if (!registered && (SCMContext.getContext().getStage() == Stage.DEVELOPMENT)) {
|
|
||||||
logger.info("register for restart events");
|
|
||||||
ScmEventBus.getInstance().register(this);
|
|
||||||
registered = true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void createContextListener(File pluginDirectory) {
|
private void createContextListener(File pluginDirectory) {
|
||||||
@@ -404,9 +395,6 @@ public class BootstrapContextListener implements ServletContextListener {
|
|||||||
/** Field description */
|
/** Field description */
|
||||||
private ScmContextListener contextListener;
|
private ScmContextListener contextListener;
|
||||||
|
|
||||||
/** Field description */
|
|
||||||
private boolean registered = false;
|
|
||||||
|
|
||||||
private static class ScmContextListenerModule extends AbstractModule {
|
private static class ScmContextListenerModule extends AbstractModule {
|
||||||
@Override
|
@Override
|
||||||
protected void configure() {
|
protected void configure() {
|
||||||
|
|||||||
Reference in New Issue
Block a user