Public Member Functions | |
void | loadPlugins () |
Try to load a class as plugin. | |
Class<?> | findClass (String name) throws ClassNotFoundException |
void | loadJar (File jarfile, Map< String, ClassFile > potentials) |
Loads a jar. | |
JismPlugin | newInstance (String name) |
Create new instance of a plugin. | |
Static Public Attributes | |
static final String | PLUGIN_PATH_SEPARATOR = ";" |
static final String | PLUGIN_PATH_PROPERTY = "jism.plugins.path" |
static final String | PLUGIN_PATH_DEFAULT = "org/miv/jism/plugins/" |
static final String | PLUGIN_INTERFACE = "org.miv.jism.core.JismPlugin" |
Protected Member Functions | |
boolean | load (ClassFile cf, Map< String, ClassFile > potentials, Map< ClassFile, LinkedList< ClassFile > > innerClass) |
boolean | couldBePlugin (ClassFile c) |
void | load (File f, Map< String, ClassFile > potentials) |
Loads plugins found in path define by jism.plugins.path. | |
void | loadDirectory (File dir, Map< String, ClassFile > potentials) |
Loads a plugins directory. | |
void | tryLoadPlugin (File potential, Map< String, ClassFile > potentials) |
boolean | isValidClass (Class c) |
Class<?> | loadClass (String name, boolean resolve) throws ClassNotFoundException |
void | registerPlugin (ClassFile cf) |
void | finalizeRegistring (Class c, int length) |
Static Package Functions | |
[static initializer] | |
Package Attributes | |
Map< String, Class > | plugins = new HashMap<String,Class>() |
Map< String, String > | notloaded = new HashMap<String,String>() |
ClassFilter | filter = new ClassFilter() |
Static Package Attributes | |
static Class | PLUGIN_CLASS |
Classes | |
class | ClassFilter |
Filter for class file. |
void org.miv.jism.core.PluginClassLoader.loadPlugins | ( | ) |
Try to load a class as plugin.
potential | file containing class |
void org.miv.jism.core.PluginClassLoader.loadDirectory | ( | File | dir, | |
Map< String, ClassFile > | potentials | |||
) | [protected] |
Loads a plugins directory.
dir | directory to load |
void org.miv.jism.core.PluginClassLoader.loadJar | ( | File | jarfile, | |
Map< String, ClassFile > | potentials | |||
) |
Loads a jar.
jarfile | jar file |
JismPlugin org.miv.jism.core.PluginClassLoader.newInstance | ( | String | name | ) |
Create new instance of a plugin.
name | name of the plugin |