public interface ServicePluginConfigurer extends PluginConfigurer
Modifier and Type | Method and Description |
---|---|
default ClassLoader |
createClassLoader()
Creates a new instance of
ClassLoader that contains this program classloader, all the
plugins export-package classloader instantiated by this configurer and system classloader in
that loading order. |
<T> T |
usePlugin(String pluginType,
String pluginName,
String pluginId,
PluginProperties properties,
PluginSelector selector,
MacroEvaluator macroEvaluator,
MacroParserOptions options)
Adds a Plugin usage to the Application and create a new instance.
|
evaluateMacros, evaluateMacros, usePlugin, usePlugin, usePluginClass, usePluginClass
@Nullable <T> T usePlugin(String pluginType, String pluginName, String pluginId, PluginProperties properties, PluginSelector selector, MacroEvaluator macroEvaluator, MacroParserOptions options)
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 usemacroEvaluator
- macro evaluator to be used to evaluate macrosoptions
- macro parsing optionsnull
if no plugin was foundInvalidPluginConfigException
- if the plugin config could not be created from the
given propertiesdefault ClassLoader createClassLoader()
ClassLoader
that contains this program classloader, all the
plugins export-package classloader instantiated by this configurer and system classloader in
that loading order. Currently this method is only supported in services.Copyright © 2024 Cask Data, Inc. Licensed under the Apache License, Version 2.0.