Search in sources :

Example 31 with BaseConfiguration

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;
}
Also used : BaseConfiguration(org.apache.commons.configuration.BaseConfiguration)

Example 32 with BaseConfiguration

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;
}
Also used : BaseConfiguration(org.apache.commons.configuration.BaseConfiguration)

Aggregations

BaseConfiguration (org.apache.commons.configuration.BaseConfiguration)32 Test (org.junit.Test)17 CommonsConfiguration (com.thinkaurelius.titan.diskstorage.configuration.backend.CommonsConfiguration)8 ExternalView (org.apache.helix.model.ExternalView)7 Test (org.testng.annotations.Test)7 ModifiableConfiguration (com.thinkaurelius.titan.diskstorage.configuration.ModifiableConfiguration)5 GraphDatabaseConfiguration (com.thinkaurelius.titan.graphdb.configuration.GraphDatabaseConfiguration)5 InstanceConfig (org.apache.helix.model.InstanceConfig)5 LLCSegmentName (com.linkedin.pinot.common.utils.LLCSegmentName)4 BasicConfiguration (com.thinkaurelius.titan.diskstorage.configuration.BasicConfiguration)4 Configuration (com.thinkaurelius.titan.diskstorage.configuration.Configuration)4 ElasticSearchIndex (com.thinkaurelius.titan.diskstorage.es.ElasticSearchIndex)4 ArrayList (java.util.ArrayList)4 AbstractConfiguration (org.apache.commons.configuration.AbstractConfiguration)4 RoutingTableBuilder (com.linkedin.pinot.routing.builder.RoutingTableBuilder)3 File (java.io.File)3 Configuration (org.apache.commons.configuration.Configuration)3 ServerInstance (com.linkedin.pinot.common.response.ServerInstance)2 HLCSegmentName (com.linkedin.pinot.common.utils.HLCSegmentName)2 ServerToSegmentSetMap (com.linkedin.pinot.routing.ServerToSegmentSetMap)2