|
|
@ -330,11 +330,14 @@ public abstract class AbstractPluginManager implements PluginManager { |
|
|
|
log.info("Start plugin '{}'", getPluginLabel(pluginWrapper.getDescriptor())); |
|
|
|
log.info("Start plugin '{}'", getPluginLabel(pluginWrapper.getDescriptor())); |
|
|
|
pluginWrapper.getPlugin().start(); |
|
|
|
pluginWrapper.getPlugin().start(); |
|
|
|
pluginWrapper.setPluginState(PluginState.STARTED); |
|
|
|
pluginWrapper.setPluginState(PluginState.STARTED); |
|
|
|
|
|
|
|
pluginWrapper.setFailedException(null); |
|
|
|
startedPlugins.add(pluginWrapper); |
|
|
|
startedPlugins.add(pluginWrapper); |
|
|
|
|
|
|
|
|
|
|
|
firePluginStateEvent(new PluginStateEvent(this, pluginWrapper, pluginState)); |
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
|
|
|
|
pluginWrapper.setPluginState(PluginState.FAILED); |
|
|
|
|
|
|
|
pluginWrapper.setFailedException(e); |
|
|
|
log.error(e.getMessage(), e); |
|
|
|
log.error(e.getMessage(), e); |
|
|
|
|
|
|
|
} finally { |
|
|
|
|
|
|
|
firePluginStateEvent(new PluginStateEvent(this, pluginWrapper, pluginState)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|