|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PluginRegistry
Loader and registry of Extensions and Extension Points. The implementation of this interface must have a public constructor taking the ClassLoaderResolver interface as argument
| Method Summary | |
|---|---|
java.lang.Object |
createExecutableExtension(ConfigurationElement confElm,
java.lang.String name,
java.lang.Class[] argsClass,
java.lang.Object[] args)
Loads a class (do not initialize) from an attribute of ConfigurationElement |
ExtensionPoint |
getExtensionPoint(java.lang.String id)
Acessor for the ExtensionPoint |
ExtensionPoint[] |
getExtensionPoints()
Acessor for the currently registed ExtensionPoints |
java.lang.Class |
loadClass(java.lang.String pluginId,
java.lang.String className)
Loads a class (do not initialize) |
void |
registerExtensionPoints()
Register Extension Points declared in /org/jpox/plugin/plugin.xml |
void |
registerExtensions()
Register ExtensionPoints and Extensions declared in plugin files |
java.net.URL |
resolveURLAsFileURL(java.net.URL url)
Converts a URL that uses a user-defined protocol into a URL that uses the file protocol. |
| Method Detail |
|---|
ExtensionPoint getExtensionPoint(java.lang.String id)
id - the unique id of the extension point
ExtensionPoint[] getExtensionPoints()
void registerExtensionPoints()
void registerExtensions()
java.lang.Object createExecutableExtension(ConfigurationElement confElm,
java.lang.String name,
java.lang.Class[] argsClass,
java.lang.Object[] args)
throws java.lang.ClassNotFoundException,
java.lang.SecurityException,
java.lang.NoSuchMethodException,
java.lang.IllegalArgumentException,
java.lang.InstantiationException,
java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
ConfigurationElement
confElm - the configuration elementname - the attribute name
java.lang.ClassNotFoundException
java.lang.SecurityException
java.lang.NoSuchMethodException
java.lang.IllegalArgumentException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.Class loadClass(java.lang.String pluginId,
java.lang.String className)
throws java.lang.ClassNotFoundException
pluginId - the plugin idclassName - the class name
java.lang.ClassNotFoundException
java.net.URL resolveURLAsFileURL(java.net.URL url)
throws java.io.IOException
url - the url to be converted
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||