|
|
|
@ -32,6 +32,8 @@ public class PluginWrapper {
|
|
|
|
|
private PluginState pluginState; |
|
|
|
|
private RuntimeMode runtimeMode; |
|
|
|
|
|
|
|
|
|
private Exception failedException; |
|
|
|
|
|
|
|
|
|
Plugin plugin; // cache
|
|
|
|
|
|
|
|
|
|
public PluginWrapper(PluginManager pluginManager, PluginDescriptor descriptor, Path pluginPath, ClassLoader pluginClassLoader) { |
|
|
|
@ -139,4 +141,16 @@ public class PluginWrapper {
|
|
|
|
|
this.pluginFactory = pluginFactory; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Returns the exception with which the plugin fails to start. |
|
|
|
|
* See @{link PluginStatus#FAILED}. |
|
|
|
|
*/ |
|
|
|
|
public Exception getFailedException() { |
|
|
|
|
return failedException; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void setFailedException(Exception failedException) { |
|
|
|
|
this.failedException = failedException; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|