public interface PluginSource
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.| Modifier and Type | Method and Description |
|---|---|
default PluginSource |
addAllPluginJars(Path folder)
Adds all jar files from the given folder as plugin.
|
PluginSource |
addAllPluginJars(Path folder,
Predicate<Path> filter)
Adds all jar files from the given folder for which the given predicate
holds true as plugin.
|
PluginSource |
addPluginJar(Path jarFile)
Adds the given jar file as plugin.
|
PluginSource |
addUnpackedPlugin(Path folder)
Adds a plugin which is not packed into a jar but which contents are
contained in the given folder.
|
static void |
noPlugins(PluginSource source)
No-op method PluginSource consumer method for specifying no plugins when
configuring a TinyPlugz instance.
|
static void noPlugins(PluginSource source)
TinyPlugzConfigurator.setup().withPlugins(PluginSource::noPlugins).deploy();
source - The plugin source.PluginSource addUnpackedPlugin(Path folder)
folder - The folder.IllegalArgumentException - If the given path does not denote a
folder.PluginSource addPluginJar(Path jarFile)
jarFile - Path to the jar file.default PluginSource addAllPluginJars(Path folder)
folder - The folder containing the files.IllegalArgumentException - If the given path does not denote a
folder.PluginSource 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.Copyright © 2014–2015. All rights reserved.