public class PluginLoader extends Object
Constructor and Description |
---|
PluginLoader() |
Modifier and Type | Method and Description |
---|---|
static boolean |
load(String file)
Loads the plugin configuration file
file and registers the plugins. |
static void |
loadPlugins(Plugins plugins)
Load all plugins.
|
public static boolean load(String file)
file
and registers the plugins.file
- the plugin configuration file.true
on success.public static void loadPlugins(Plugins plugins) throws RuntimeException
plugins
- the plugins to load.RuntimeException
- if an error occurs during loading.