public interface PluginPlatform
PluginRegistry.| Modifier and Type | Method and Description |
|---|---|
PluginRegistry |
getPluginRegistry()
Returns the plugin registry of this platform.
|
void |
init()
Initializes this plugin platform.
|
<T extends CoreAPI> |
loadPlugins(String path,
HostApplication<T> application)
Loads plugins found in the path provided.
|
void |
stop()
Stops this plugin platform.
|
void init() throws PlatformException
PlatformException - If there's any error while initializing this platform.<T extends CoreAPI> boolean loadPlugins(String path, HostApplication<T> application) throws PlatformException
PluginRegistry. If the path refers to a single jar file, on the
other hand, then only that file will be loaded.T - The type of the CoreAPI associated with the host
application.path - The path from where the plugins should be loaded from, or the
path to the jar file of a plugin.application - The application where the plugins to be loaded will be hosted.PlatformException - If there's any error while loading the plugins.void stop() throws PlatformException
PlatformException - If there's any error while stopping this platform.PluginRegistry getPluginRegistry()
PluginRegistryCopyright © 2014. All rights reserved.