use of org.apache.commons.configuration.BaseConfiguration in project zaproxy by zaproxy.
the class PluginFactory method createNewPlugin.
private static Plugin createNewPlugin(Plugin plugin, Configuration config) throws ReflectiveOperationException {
Plugin newPlugin = plugin.getClass().getDeclaredConstructor().newInstance();
newPlugin.setConfig(new BaseConfiguration());
plugin.cloneInto(newPlugin);
newPlugin.setConfig(config);
newPlugin.createParamIfNotExist();
newPlugin.loadFrom(config);
return newPlugin;
}
Aggregations