public final void urlRemoved(DeploymentEvent paramDeploymentEvent) { try { MonitorManager.getInstance().reloadObjectActionListeners(); return; } catch (Throwable e) { logger.error("fail to reload listeners", e); } }
public static synchronized MonitorManager getInstance() { if (instance == null) { instance = new MonitorManager(); } if (!instance.isInitialized) { try { MonitorManager localMonitorManager = instance; PluginController localPluginController = (PluginController) WebUtils.getServletContextManager().getActor("nds.io.plugincontroller"); localMonitorManager.oaLmanager = new PluginManager(ObjectActionListener.class, localPluginController.getPluginScanner()); localMonitorManager.oaLmanager.init(); if (localMonitorManager.oaLmanager.findPlugin("default") != null) { localPluginController.getPluginScanner().addDeploymentListener(new a()); localMonitorManager.reloadObjectActionListeners(); logger.info("Monitor plugin found."); localMonitorManager.isMonitorPluginInstalled = true; } else { localMonitorManager.isMonitorPluginInstalled = false; logger.warning("Monitor plugin not installed."); } localMonitorManager.isInitialized = true; Velocity.init(); } catch (Exception localException) { throw new NDSRuntimeException(localException.getMessage(), localException); } } return instance; }