|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bukkit.plugin.java.JavaPluginLoader
public class JavaPluginLoader
Represents a Java plugin loader, allowing plugins in the form of .jar
Field Summary | |
---|---|
protected Map<String,Class<?>> |
classes
Deprecated. Internal field that wasn't intended to be exposed |
protected Pattern[] |
fileFilters
Deprecated. Internal field that wasn't intended to be exposed |
protected Map<String,PluginClassLoader> |
loaders
Deprecated. Internal field that wasn't intended to be exposed |
Constructor Summary | |
---|---|
JavaPluginLoader(Server instance)
Deprecated. |
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 |
Class<?> |
getClassByName(String name)
Deprecated. Internal method that wasn't intended to be exposed |
protected File |
getDataFolder(File file)
Deprecated. Internal method that wasn't intended to be exposed |
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 |
Plugin |
loadPlugin(File file,
boolean ignoreSoftDependencies)
Deprecated. Relic method from PluginLoader that didn't get purged |
void |
removeClass(String name)
Deprecated. Internal method that wasn't intended to be exposed |
void |
setClass(String name,
Class<?> clazz)
Deprecated. Internal method that wasn't intended to be exposed |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@Deprecated protected final Pattern[] fileFilters
@Deprecated protected final Map<String,Class<?>> classes
@Deprecated protected final Map<String,PluginClassLoader> loaders
Constructor Detail |
---|
@Deprecated public JavaPluginLoader(Server instance)
Method Detail |
---|
public Plugin loadPlugin(File file) throws InvalidPluginException
PluginLoader
loadPlugin
in interface PluginLoader
file
- File to attempt to load
InvalidPluginException
- Thrown when the specified file is not a plugin@Deprecated public Plugin loadPlugin(File file, boolean ignoreSoftDependencies) throws InvalidPluginException
InvalidPluginException
@Deprecated protected File getDataFolder(File file)
public PluginDescriptionFile getPluginDescription(File file) throws InvalidDescriptionException
PluginLoader
getPluginDescription
in interface PluginLoader
file
- File to attempt to load from
InvalidDescriptionException
- If the plugin description file could not be createdpublic Pattern[] getPluginFileFilters()
PluginLoader
getPluginFileFilters
in interface PluginLoader
@Deprecated public Class<?> getClassByName(String name)
@Deprecated public void setClass(String name, Class<?> clazz)
@Deprecated public void removeClass(String name)
public Map<Class<? extends Event>,Set<RegisteredListener>> createRegisteredListeners(Listener listener, Plugin plugin)
PluginLoader
createRegisteredListeners
in interface PluginLoader
listener
- The object that will handle the eventual call backplugin
- The plugin to use when creating registered listeners
public void enablePlugin(Plugin plugin)
PluginLoader
enablePlugin
in interface PluginLoader
plugin
- Plugin to enablepublic void disablePlugin(Plugin plugin)
PluginLoader
disablePlugin
in interface PluginLoader
plugin
- Plugin to disable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |