@ThreadSafe public interface Plugins extends Registry<Plugin>
To access this handler, use this code:
PluginHandler handler = Registered.plugins();
| Modifier and Type | Method and Description |
|---|---|
void |
disable(Plugin plugin)
Disables the plugin unloading the classes and removing the subprocess
|
void |
enable(Plugin plugin)
Enables the given plugin
|
SelectableThread |
executor()
Obtains the worker used to load plugins.
|
Plugin |
load(File pluginFile)
Loads the plugin file
|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArrayPlugin load(File pluginFile)
pluginFile - the plugin file to loadvoid enable(Plugin plugin)
plugin - the plugin to enablevoid disable(Plugin plugin)
plugin - the plugin to disableSelectableThread executor()
Copyright © 2016. All rights reserved.