public interface PluginSourceBuilder
TinyPlugz. This
interface is not intended to be implemented by clients. An instance of this
interface can be consumed while configuring the TinyPlugz instance before
deployment using the TinyPlugzConfigurator. A default instance can
also be obtained by PluginSource.builder().| Modifier and Type | Method and Description |
|---|---|
default PluginSourceBuilder |
addAllPluginJars(Path folder)
Adds all jar files from the given folder as plugin.
|
PluginSourceBuilder |
addAllPluginJars(Path folder,
Predicate<Path> filter)
Adds all jar files from the given folder for which the given predicate
holds true as plugin.
|
PluginSourceBuilder |
addPlugin(URL url)
Adds a plugin which is located by the given URL.
|
PluginSourceBuilder |
addPluginJar(Path jarFile)
Adds the given jar file as plugin.
|
PluginSourceBuilder |
addUnpackedPlugin(Path folder)
Adds a plugin which is not packed into a jar but which contents are
contained in the given folder.
|
PluginSource |
createSource()
Creates a
PluginSource from the configured URLs. |
PluginSourceBuilder |
include(PluginSource source)
Includes all plugins from the given source in the source which is to be
built by this builder.
|
static void |
noPlugins(PluginSourceBuilder source)
No-op PluginSourceBuilder consumer method for specifying no plugins when
configuring a TinyPlugz instance.
|
static void noPlugins(PluginSourceBuilder source)
TinyPlugzConfigurator.setup().withPlugins(PluginSourceBuilder::noPlugins).deploy();
source - The plugin source.PluginSourceBuilder include(PluginSource source)
source - The source to include.PluginSourceBuilder addPlugin(URL url)
url - The URL of the plugin.PluginSourceBuilder addUnpackedPlugin(Path folder)
folder - The folder.IllegalArgumentException - If the given path does not denote a
folder.PluginSourceBuilder addPluginJar(Path jarFile)
jarFile - Path to the jar file.default PluginSourceBuilder addAllPluginJars(Path folder)
folder - The folder containing the files.IllegalArgumentException - If the given path does not denote a
folder.PluginSourceBuilder addAllPluginJars(Path folder, Predicate<Path> filter)
folder - The folder containing the files.filter - The filter.IllegalArgumentException - If the given path does not denote a
folder.PluginSource createSource()
PluginSource from the configured URLs.Copyright © 2014–2015. All rights reserved.