Added Java plugin loader + a plugin manager

By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
Bukkit/Spigot
2010-12-24 10:31:01 +00:00
parent 1df4f74b79
commit 284ae0df7f
3 changed files with 125 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
package org.bukkit.plugin;
import java.io.File;
import java.util.regex.Pattern;
/**
* Represents a plugin loader, which provides access and management for all plugins
@@ -38,11 +39,14 @@ public interface PluginLoader {
/**
* Loads the plugin contained in the specified file
*
* File must be a .jar and contain a valid plugin.yaml file
*
* @param file File to attempt to load
* @return Plugin that was contained in the specified file, or null if
* unsuccessful
*/
public Plugin loadPlugin(File file);
/**
* Returns a list of all filename filters expected by this PluginLoader
*/
public Pattern[] getPluginFileFilters();
}