Package io.kroxylicious.proxy.config
Class ServiceBasedPluginFactoryRegistry
java.lang.Object
io.kroxylicious.proxy.config.ServiceBasedPluginFactoryRegistry
- All Implemented Interfaces:
PluginFactoryRegistry
A
PluginFactoryRegistry that is implemented using ServiceLoader discovery.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<P> PluginFactory<P> pluginFactory(Class<P> pluginClass) Resolve a plugin interface type to a factory for that type of plugin
-
Constructor Details
-
ServiceBasedPluginFactoryRegistry
public ServiceBasedPluginFactoryRegistry()
-
-
Method Details
-
pluginFactory
Description copied from interface:PluginFactoryRegistryResolve a plugin interface type to a factory for that type of plugin- Specified by:
pluginFactoryin interfacePluginFactoryRegistry- Type Parameters:
P- The type of plugin- Parameters:
pluginClass- The plugin interface type.- Returns:
- The factory for that type of plugin
-