public interface PluginManager
-
Method Summary
Modifier and TypeMethodDescription<T extends PluginLoader>
booleanderegisterLoader(Class<T> clazz) fromInstance(Object instance) Checks if the given plugin is loaded and returns it when applicablebooleanChecks if the given plugin is enabled or not<T extends PluginLoader>
booleanregisterLoader(Class<T> clazz, T loader)
-
Method Details
-
registerLoader
-
deregisterLoader
-
getAllPlugins
Collection<PluginContainer> getAllPlugins() -
getPlugin
Checks if the given plugin is loaded and returns it when applicablePlease note that the name of the plugin is case-sensitive
- Parameters:
id- Name of the plugin to check- Returns:
- Plugin if it exists, otherwise null
-
fromInstance
-
isLoaded
Checks if the given plugin is enabled or not- Parameters:
id- Plugin to check- Returns:
- true if the plugin is enabled, otherwise false
-