Search in sources :

Example 71 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().getDeclaredConstructor().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)

Aggregations

BaseConfiguration (org.apache.commons.configuration.BaseConfiguration)71 Test (org.junit.Test)24 Configuration (org.apache.commons.configuration.Configuration)19 GraphDatabaseConfiguration (com.thinkaurelius.titan.graphdb.configuration.GraphDatabaseConfiguration)15 CommonsConfiguration (com.thinkaurelius.titan.diskstorage.configuration.backend.CommonsConfiguration)8 AbstractConfiguration (org.apache.commons.configuration.AbstractConfiguration)7 ExternalView (org.apache.helix.model.ExternalView)7 Test (org.testng.annotations.Test)7 ModifiableConfiguration (com.thinkaurelius.titan.diskstorage.configuration.ModifiableConfiguration)5 File (java.io.File)5 InstanceConfig (org.apache.helix.model.InstanceConfig)5 BeforeClass (org.junit.BeforeClass)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 Map (java.util.Map)4 RoutingTableBuilder (com.linkedin.pinot.routing.builder.RoutingTableBuilder)3 ImmutableMap (com.google.common.collect.ImmutableMap)2