public void removeModuleActivator(ModuleActivator activator) { if (activators.remove(activator)) { activator.stop(); } }
public void start() { if (started) { return; } getModuleActivators(); for (ModuleActivator activator : activators) { try { activator.start(); } catch (Throwable e) { // Ignore the failing module for now logger.log(Level.SEVERE, e.getMessage(), e); } } started = true; }
public void start() { if (started) { return; } getModuleActivators(); for (ModuleActivator activator : activators) { try { activator.start(); } catch (Throwable e) { // Ignore the failing module for now logger.log(Level.SEVERE, e.getMessage(), e); } } started = true; }
public void removeModuleActivator(ModuleActivator activator) { if (activators.remove(activator)) { activator.stop(); } }
public void stop() { if (!started) { return; } for (int i = activators.size() - 1; i >= 0; i--) { try { activators.get(i).stop(); } catch (Throwable e) { // Ignore the failing module for now logger.log(Level.SEVERE, e.getMessage(), e); } } started = false; }
public void stop() { if (!started) { return; } for (int i = activators.size() - 1; i >= 0; i--) { try { activators.get(i).stop(); } catch (Throwable e) { // Ignore the failing module for now logger.log(Level.SEVERE, e.getMessage(), e); } } started = false; }