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().newInstance();
newPlugin.setConfig(new BaseConfiguration());
plugin.cloneInto(newPlugin);
newPlugin.setConfig(config);
newPlugin.createParamIfNotExist();
newPlugin.loadFrom(config);
return newPlugin;
}
use of org.apache.commons.configuration.BaseConfiguration in project midpoint by Evolveum.
the class ExpressionTestUtil method createConfiguration.
private static Configuration createConfiguration() {
BaseConfiguration config = new BaseConfiguration();
config.addProperty("foo", "foobar");
return config;
}
Aggregations