public interface PluginRegistry
Modifier and Type | Method and Description |
---|---|
Object |
createExecutableExtension(ConfigurationElement confElm,
String name,
Class[] argsClass,
Object[] args)
Loads a class (do not initialize) from an attribute of
ConfigurationElement |
Bundle[] |
getBundles()
Accessor for all registered bundles
|
ExtensionPoint |
getExtensionPoint(String id)
Acessor for the ExtensionPoint
|
ExtensionPoint[] |
getExtensionPoints()
Acessor for the currently registed ExtensionPoints
|
Class |
loadClass(String pluginId,
String className)
Loads a class (do not initialize)
|
void |
registerExtensionPoints()
Look for Bundles/Plugins and register them.
|
void |
registerExtensions()
Look for Bundles/Plugins and register them.
|
void |
resolveConstraints()
Resolve constraints declared in bundle manifest.mf files.
|
URL |
resolveURLAsFileURL(URL url)
Converts a URL that uses a user-defined protocol into a URL that uses the file protocol.
|
ExtensionPoint getExtensionPoint(String id)
id
- the unique id of the extension pointExtensionPoint[] getExtensionPoints()
void registerExtensionPoints()
void registerExtensions()
Object createExecutableExtension(ConfigurationElement confElm, String name, Class[] argsClass, Object[] args) throws ClassNotFoundException, SecurityException, NoSuchMethodException, IllegalArgumentException, InstantiationException, IllegalAccessException, InvocationTargetException
ConfigurationElement
confElm
- the configuration elementname
- the attribute nameargsClass
- Classes of the argsargs
- The argumentsClassNotFoundException
- If an error occursNoSuchMethodException
- If an error occursSecurityException
- If an error occursInvocationTargetException
- If an error occursIllegalAccessException
- If an error occursInstantiationException
- If an error occursIllegalArgumentException
- If an error occursClass loadClass(String pluginId, String className) throws ClassNotFoundException
pluginId
- the plugin idclassName
- the class nameClassNotFoundException
- if an error occurs in loadingURL resolveURLAsFileURL(URL url) throws IOException
url
- the url to be convertedIOException
- if an error occursvoid resolveConstraints()
Bundle[] getBundles()
UnsupportedOperationException
- if this operation is not supported by the implementationCopyright © 2019. All rights reserved.