Package io.kroxylicious.proxy.config
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 TypeMethodDescriptionClass<?> 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
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
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
Returns the names of the registered instances of this plugin. The set is immutable.
-