Interface PluginFactory<P>

Type Parameters:
P - The plugin type

public interface PluginFactory<P>
A PluginFactory is able to resolve references to a plugin implementation (i.e. a name) to that implementation.
  • Method Summary

    Modifier and Type
    Method
    Description
    configType(String instanceName)
    Resolves a plugin reference to the plugins config type.
    pluginInstance(String instanceName)
    Resolves a plugin reference to a plugin implementation.
    Returns the names of the registered instances of this plugin.
  • Method Details

    • pluginInstance

      P pluginInstance(String instanceName)
      Resolves a plugin reference to a plugin implementation.
      Parameters:
      instanceName - The name of the plugin implementation
      Returns:
      The plugin implementation
      Throws:
      io.kroxylicious.proxy.plugin.UnknownPluginInstanceException - If the plugin implementation with the given name could not be found
    • configType

      Class<?> configType(String instanceName)
      Resolves a plugin reference to the plugins config type.
      Parameters:
      instanceName - The name of the plugin implementation
      Returns:
      The plugin's config type'
      Throws:
      io.kroxylicious.proxy.plugin.UnknownPluginInstanceException - If the plugin implementation with the given name could not be found
    • registeredInstanceNames

      Set<String> registeredInstanceNames()
      Returns the names of the registered instances of this plugin. The set is immutable.