Search in sources :

Example 1 with EngineConfigTuple

use of io.apiman.gateway.engine.EngineConfigTuple in project apiman by apiman.

the class ConfigDrivenEngineFactory method createInitializers.

/**
 * @see io.apiman.gateway.engine.impl.AbstractEngineFactory#createInitializers(io.apiman.gateway.engine.IPluginRegistry)
 */
@Override
protected List<IGatewayInitializer> createInitializers(IPluginRegistry pluginRegistry) {
    List<IGatewayInitializer> rval = new ArrayList<>();
    List<EngineConfigTuple<? extends IGatewayInitializer>> initializers = engineConfig.getGatewayInitializers(pluginRegistry);
    for (EngineConfigTuple<? extends IGatewayInitializer> tuple : initializers) {
        IGatewayInitializer initializer = create(tuple.getComponentClass(), tuple.getComponentConfig());
        rval.add(initializer);
    }
    return rval;
}
Also used : EngineConfigTuple(io.apiman.gateway.engine.EngineConfigTuple) ArrayList(java.util.ArrayList) IGatewayInitializer(io.apiman.gateway.engine.IGatewayInitializer)

Aggregations

EngineConfigTuple (io.apiman.gateway.engine.EngineConfigTuple)1 IGatewayInitializer (io.apiman.gateway.engine.IGatewayInitializer)1 ArrayList (java.util.ArrayList)1