|
|
@ -60,8 +60,8 @@ public class DefaultPluginFactory implements PluginFactory { |
|
|
|
|
|
|
|
|
|
|
|
// create the plugin instance
|
|
|
|
// create the plugin instance
|
|
|
|
try { |
|
|
|
try { |
|
|
|
Constructor<?> constructor = pluginClass.getConstructor(new Class[] { PluginWrapper.class }); |
|
|
|
Constructor<?> constructor = pluginClass.getConstructor(PluginWrapper.class); |
|
|
|
return (Plugin) constructor.newInstance(new Object[] { pluginWrapper }); |
|
|
|
return (Plugin) constructor.newInstance(pluginWrapper); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
log.error(e.getMessage(), e); |
|
|
|
log.error(e.getMessage(), e); |
|
|
|
} |
|
|
|
} |
|
|
|