Class ServiceBasedPluginFactoryRegistry

java.lang.Object
io.kroxylicious.proxy.config.ServiceBasedPluginFactoryRegistry
All Implemented Interfaces:
PluginFactoryRegistry

public class ServiceBasedPluginFactoryRegistry extends Object implements PluginFactoryRegistry
A PluginFactoryRegistry that is implemented using ServiceLoader discovery.
  • Constructor Details

    • ServiceBasedPluginFactoryRegistry

      public ServiceBasedPluginFactoryRegistry()
  • Method Details

    • pluginFactory

      public <P> PluginFactory<P> pluginFactory(Class<P> pluginClass)
      Description copied from interface: PluginFactoryRegistry
      Resolve a plugin interface type to a factory for that type of plugin
      Specified by:
      pluginFactory in interface PluginFactoryRegistry
      Type Parameters:
      P - The type of plugin
      Parameters:
      pluginClass - The plugin interface type.
      Returns:
      The factory for that type of plugin