Search in sources :

Example 1 with FileSystemPluginFactoryLoader

use of com.hotels.styx.proxy.plugin.FileSystemPluginFactoryLoader in project styx by ExpediaGroup.

the class PluginLoadingForStartup method loadPluginFactory.

private static ConfiguredPluginFactory loadPluginFactory(Pair<String, SpiExtension> pair) {
    String pluginName = pair.key();
    SpiExtension spiExtension = pair.value();
    PluginFactory factory = new FileSystemPluginFactoryLoader().load(spiExtension);
    return new ConfiguredPluginFactory(pluginName, factory, spiExtension::config);
}
Also used : FileSystemPluginFactoryLoader(com.hotels.styx.proxy.plugin.FileSystemPluginFactoryLoader) SpiExtension(com.hotels.styx.spi.config.SpiExtension) PluginFactory(com.hotels.styx.api.plugins.spi.PluginFactory)

Aggregations

PluginFactory (com.hotels.styx.api.plugins.spi.PluginFactory)1 FileSystemPluginFactoryLoader (com.hotels.styx.proxy.plugin.FileSystemPluginFactoryLoader)1 SpiExtension (com.hotels.styx.spi.config.SpiExtension)1