Bukkit  1.4.7-R1.0
 All Classes Namespaces Files Functions Variables Enumerator Pages
org.bukkit.plugin.PluginLoader Interface Reference

Represents a plugin loader, which handles direct access to specific types of plugins. More...

+ Inheritance diagram for org.bukkit.plugin.PluginLoader:

Public Member Functions

Plugin loadPlugin (File file) throws InvalidPluginException, UnknownDependencyException
 Loads the plugin contained in the specified file.
 
PluginDescriptionFile getPluginDescription (File file) throws InvalidDescriptionException
 Loads a PluginDescriptionFile from the specified file.
 
Pattern[] getPluginFileFilters ()
 Returns a list of all filename filters expected by this PluginLoader.
 
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 enablePlugin (Plugin plugin)
 Enables the specified plugin.
 
void disablePlugin (Plugin plugin)
 Disables the specified plugin.
 

Detailed Description

Represents a plugin loader, which handles direct access to specific types of plugins.

Definition at line 15 of file PluginLoader.java.

Member Function Documentation

Map<Class<? extends Event>, Set<RegisteredListener> > org.bukkit.plugin.PluginLoader.createRegisteredListeners ( Listener  listener,
Plugin  plugin 
)

Creates and returns registered listeners for the event classes used in this listener.

Parameters
listenerThe object that will handle the eventual call back
pluginThe plugin to use when creating registered listeners
Returns
The registered listeners.

Referenced by org.bukkit.plugin.SimplePluginManager.registerEvents().

void org.bukkit.plugin.PluginLoader.disablePlugin ( Plugin  plugin)

Disables the specified plugin.

Attempting to disable a plugin that is not enabled will have no effect

Parameters
pluginPlugin to disable

Referenced by org.bukkit.plugin.SimplePluginManager.disablePlugin().

void org.bukkit.plugin.PluginLoader.enablePlugin ( Plugin  plugin)

Enables the specified plugin.

Attempting to enable a plugin that is already enabled will have no effect

Parameters
pluginPlugin to enable

Referenced by org.bukkit.plugin.SimplePluginManager.enablePlugin().

PluginDescriptionFile org.bukkit.plugin.PluginLoader.getPluginDescription ( File  file) throws InvalidDescriptionException

Loads a PluginDescriptionFile from the specified file.

Parameters
fileFile to attempt to load from
Returns
A new PluginDescriptionFile loaded from the plugin.yml in the specified file
Exceptions
InvalidDescriptionExceptionIf the plugin description file could not be created

Referenced by org.bukkit.plugin.SimplePluginManager.loadPlugins().

Pattern [] org.bukkit.plugin.PluginLoader.getPluginFileFilters ( )

Returns a list of all filename filters expected by this PluginLoader.

Returns
The filters

Referenced by org.bukkit.plugin.SimplePluginManager.registerInterface().

Plugin org.bukkit.plugin.PluginLoader.loadPlugin ( File  file) throws InvalidPluginException, UnknownDependencyException

Loads the plugin contained in the specified file.

Parameters
fileFile to attempt to load
Returns
Plugin that was contained in the specified file, or null if unsuccessful
Exceptions
InvalidPluginExceptionThrown when the specified file is not a plugin
UnknownDependencyExceptionIf a required dependency could not be found

Referenced by org.bukkit.plugin.SimplePluginManager.loadPlugin().


The documentation for this interface was generated from the following file: