Package io.kroxylicious.proxy.config
Class ConfigParser
java.lang.Object
io.kroxylicious.proxy.config.ConfigParser
- All Implemented Interfaces:
PluginFactoryRegistry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.fasterxml.jackson.databind.ObjectMapperA simple object mapper for parsing kroxylicious configuration, without our plugin loading extensionsstatic com.fasterxml.jackson.databind.ObjectMapperparseConfiguration(InputStream configuration) parseConfiguration(String configuration) <T> PluginFactory<T> pluginFactory(Class<T> pluginClass) Resolve a plugin interface type to a factory for that type of plugintoYaml(Configuration configuration)
-
Constructor Details
-
ConfigParser
public ConfigParser()
-
-
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:
T- The type of plugin- Parameters:
pluginClass- The plugin interface type.- Returns:
- The factory for that type of plugin
-
parseConfiguration
-
parseConfiguration
-
toYaml
-
createObjectMapper
public static com.fasterxml.jackson.databind.ObjectMapper createObjectMapper() -
createBaseObjectMapper
@VisibleForTesting public static com.fasterxml.jackson.databind.ObjectMapper createBaseObjectMapper()A simple object mapper for parsing kroxylicious configuration, without our plugin loading extensions- Returns:
- object mapper
-