|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PluginLoader
Represents a plugin loader, which handles direct access to specific types of plugins
Method Summary | |
---|---|
Map<Class<? extends Event>,Set<RegisteredListener>> |
createRegisteredListeners(Listener listener,
Plugin plugin)
Creates and returns registered listeners for the event classes used in this listener |
void |
disablePlugin(Plugin plugin)
Disables the specified plugin Attempting to disable a plugin that is not enabled will have no effect |
void |
enablePlugin(Plugin plugin)
Enables the specified plugin Attempting to enable a plugin that is already enabled will have no effect |
PluginDescriptionFile |
getPluginDescription(File file)
Loads a PluginDescriptionFile from the specified file |
Pattern[] |
getPluginFileFilters()
Returns a list of all filename filters expected by this PluginLoader |
Plugin |
loadPlugin(File file)
Loads the plugin contained in the specified file |
Method Detail |
---|
Plugin loadPlugin(File file) throws InvalidPluginException, UnknownDependencyException
file
- File to attempt to load
InvalidPluginException
- Thrown when the specified file is not a plugin
UnknownDependencyException
- If a required dependency could not be foundPluginDescriptionFile getPluginDescription(File file) throws InvalidDescriptionException
file
- File to attempt to load from
InvalidDescriptionException
- If the plugin description file could not be createdPattern[] getPluginFileFilters()
Map<Class<? extends Event>,Set<RegisteredListener>> createRegisteredListeners(Listener listener, Plugin plugin)
listener
- The object that will handle the eventual call backplugin
- The plugin to use when creating registered listeners
void enablePlugin(Plugin plugin)
plugin
- Plugin to enablevoid disablePlugin(Plugin plugin)
plugin
- Plugin to disable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |