public interface PluginConfigurer
Modifier and Type | Method and Description |
---|---|
default Map<String,String> |
evaluateMacros(Map<String,String> properties,
MacroEvaluator evaluator)
Evaluates lookup macros and macro functions using provided macro evaluator.
|
default Map<String,String> |
evaluateMacros(Map<String,String> properties,
MacroEvaluator evaluator,
MacroParserOptions options)
Evaluates macros using provided macro evaluator with the provided parsing options.
|
default <T> T |
usePlugin(String pluginType,
String pluginName,
String pluginId,
PluginProperties properties)
Adds a Plugin usage to the Application and create a new instance.
|
<T> T |
usePlugin(String pluginType,
String pluginName,
String pluginId,
PluginProperties properties,
PluginSelector selector)
Adds a Plugin usage to the Application and create a new instance.
|
default <T> Class<T> |
usePluginClass(String pluginType,
String pluginName,
String pluginId,
PluginProperties properties)
Adds a Plugin usage to the Application.
|
<T> Class<T> |
usePluginClass(String pluginType,
String pluginName,
String pluginId,
PluginProperties properties,
PluginSelector selector)
Adds a Plugin usage to the Application.
|
@Nullable default <T> T usePlugin(String pluginType, String pluginName, String pluginId, PluginProperties properties)
PluginContext
.T
- type of the plugin classpluginType
- plugin type namepluginName
- plugin namepluginId
- an unique identifier for this usage. The same id is used to get the plugin
at execution time.properties
- properties for the plugin. The same set of properties will be used to
instantiate the plugin instance at execution timenull
if no plugin was foundInvalidPluginConfigException
- if the plugin config could not be created from the
given properties@Nullable <T> T usePlugin(String pluginType, String pluginName, String pluginId, PluginProperties properties, PluginSelector selector)
PluginContext
.T
- type of the plugin classpluginType
- plugin type namepluginName
- plugin namepluginId
- an unique identifier for this usage. The same id is used to get the plugin
at execution time.properties
- properties for the plugin. The same set of properties will be used to
instantiate the plugin instance at execution timeselector
- for selecting which plugin to usenull
if no plugin was foundInvalidPluginConfigException
- if the plugin config could not be created from the
given properties@Nullable default <T> Class<T> usePluginClass(String pluginType, String pluginName, String pluginId, PluginProperties properties)
PluginContext
.T
- type of the plugin classpluginType
- plugin type namepluginName
- plugin namepluginId
- an unique identifier for this usage. The same id is used to get the plugin
at execution time.properties
- properties for the plugin. The same set of properties will be used to
instantiate the plugin instance at execution timeClass
for the plugin class or null
if no plugin was foundInvalidPluginConfigException
- if the plugin config could not be created from the
given properties@Nullable <T> Class<T> usePluginClass(String pluginType, String pluginName, String pluginId, PluginProperties properties, PluginSelector selector)
PluginContext
.T
- type of the plugin classpluginType
- plugin type namepluginName
- plugin namepluginId
- an unique identifier for this usage. The same id is used to get the plugin
at execution time.properties
- properties for the plugin. The same set of properties will be used to
instantiate the plugin instance at execution timeselector
- for selecting which plugin to useClass
for the plugin class or null
if no plugin was foundInvalidPluginConfigException
- if the plugin config could not be created from the
given propertiesdefault Map<String,String> evaluateMacros(Map<String,String> properties, MacroEvaluator evaluator) throws InvalidMacroException
properties
- key-value map of properties to evaluateevaluator
- macro evaluator to be used to evaluate macrosInvalidMacroException
- indicates that there is an invalid macrodefault Map<String,String> evaluateMacros(Map<String,String> properties, MacroEvaluator evaluator, MacroParserOptions options) throws InvalidMacroException
properties
- key-value map of properties to evaluateevaluator
- macro evaluator to be used to evaluate macrosoptions
- macro parsing optionsInvalidMacroException
- indicates that there is an invalid macroCopyright © 2024 Cask Data, Inc. Licensed under the Apache License, Version 2.0.