| java.lang.Object org.jpox.plugin.PluginManager
PluginManager | public class PluginManager (Code) | | Manages the registry of Extensions and Extension Points.
version: $Revision: 1.35 $ |
Method Summary | |
public Object | createExecutableExtension(String extensionPoint, String discrimAttrName, String discrimAttrValue, String attributeName, Class[] argsClass, Object[] args) Convenience accessor for getting the Class of an attribute for an extension (of an extension point). | public Object | createExecutableExtension(String extensionPoint, String[] discrimAttrName, String[] discrimAttrValue, String attributeName, Class[] argsClass, Object[] args) Convenience accessor for getting the Class of an attribute for an extension (of an extension point). | public String | getAttributeValueForExtension(String extensionPoint, String discrimAttrName, String discrimAttrValue, String attributeName) Convenience accessor for getting the value of an attribute for an extension (of an extension point). | public String | getAttributeValueForExtension(String extensionPoint, String[] discrimAttrName, String[] discrimAttrValue, String attributeName) Convenience accessor for getting the value of an attribute for an extension (of an extension point). | public String[] | getAttributeValuesForExtension(String extensionPoint, String discrimAttrName, String discrimAttrValue, String attributeName) Convenience accessor for getting the value of an attribute for an extension (of an extension point). | public ConfigurationElement | getConfigurationElementForExtension(String extensionPointName, String discrimAttrName, String discrimAttrValue) Convenience accessor for getting the (first) ConfigurationElement for an extension (of an extension point). | public ConfigurationElement | getConfigurationElementForExtension(String extensionPointName, String[] discrimAttrName, String[] discrimAttrValue) Convenience accessor for getting the ConfigurationElement for an extension (of an extension point). | public ConfigurationElement[] | getConfigurationElementsForExtension(String extensionPointName, String discrimAttrName, String discrimAttrValue) Convenience accessor for getting the ConfigurationElement(s) for an extension (of an extension point). | public ExtensionPoint | getExtensionPoint(String id) | public ExtensionPoint[] | getExtensionPoints() | public String | getRegistryClassName() Accessor for the PluginRegistry class name. | public Class | loadClass(String pluginId, String className) | public void | registerExtensionPoints() | public void | registerExtensions() | public void | resolveConstraints() Resolve constraints declared in bundle files. | public URL | resolveURLAsFileURL(URL url) Converts a URL that uses a user-defined protocol into a URL that uses the file protocol. |
createExecutableExtension | public Object createExecutableExtension(String extensionPoint, String discrimAttrName, String discrimAttrValue, String attributeName, Class[] argsClass, Object[] args) throws ClassNotFoundException, SecurityException, NoSuchMethodException, IllegalArgumentException, InstantiationException, IllegalAccessException, InvocationTargetException(Code) | | Convenience accessor for getting the Class of an attribute for an extension (of an extension point).
Parameters: extensionPoint - The extension point Parameters: discrimAttrName - Attribute on the extension to use as discriminator Parameters: discrimAttrValue - Value for discriminator attribute Parameters: attributeName - Name of the attribute whose value we want The value of the attribute |
createExecutableExtension | public Object createExecutableExtension(String extensionPoint, String[] discrimAttrName, String[] discrimAttrValue, String attributeName, Class[] argsClass, Object[] args) throws ClassNotFoundException, SecurityException, NoSuchMethodException, IllegalArgumentException, InstantiationException, IllegalAccessException, InvocationTargetException(Code) | | Convenience accessor for getting the Class of an attribute for an extension (of an extension point).
Parameters: extensionPoint - The extension point Parameters: discrimAttrName - First attribute on the extension to use as discriminator Parameters: discrimAttrValue - Value for first discriminator attribute Parameters: attributeName - Name of the attribute whose value we want The value of the attribute |
getAttributeValueForExtension | public String getAttributeValueForExtension(String extensionPoint, String discrimAttrName, String discrimAttrValue, String attributeName)(Code) | | Convenience accessor for getting the value of an attribute for an extension (of an extension point).
Parameters: extensionPoint - The extension point Parameters: discrimAttrName - Attribute on the extension to use as discriminator Parameters: discrimAttrValue - Value for discriminator attribute Parameters: attributeName - Name of the attribute whose value we want The value of the attribute |
getAttributeValueForExtension | public String getAttributeValueForExtension(String extensionPoint, String[] discrimAttrName, String[] discrimAttrValue, String attributeName)(Code) | | Convenience accessor for getting the value of an attribute for an extension (of an extension point).
Parameters: extensionPoint - The extension point Parameters: discrimAttrName - Attribute on the extension to use as discriminator1 Parameters: discrimAttrValue - Value for discriminator1 attribute Parameters: attributeName - Name of the attribute whose value we want The value of the attribute |
getAttributeValuesForExtension | public String[] getAttributeValuesForExtension(String extensionPoint, String discrimAttrName, String discrimAttrValue, String attributeName)(Code) | | Convenience accessor for getting the value of an attribute for an extension (of an extension point).
Parameters: extensionPoint - The extension point Parameters: discrimAttrName - Attribute on the extension to use as discriminator Parameters: discrimAttrValue - Value for discriminator attribute Parameters: attributeName - Name of the attribute whose value we want The value(s) of the attribute |
getConfigurationElementForExtension | public ConfigurationElement getConfigurationElementForExtension(String extensionPointName, String discrimAttrName, String discrimAttrValue)(Code) | | Convenience accessor for getting the (first) ConfigurationElement for an extension (of an extension point).
Parameters: extensionPointName - The extension point Parameters: discrimAttrName - Attribute on the extension to use as discriminator Parameters: discrimAttrValue - Value for discriminator attribute The value of the attribute |
getConfigurationElementForExtension | public ConfigurationElement getConfigurationElementForExtension(String extensionPointName, String[] discrimAttrName, String[] discrimAttrValue)(Code) | | Convenience accessor for getting the ConfigurationElement for an extension (of an extension point).
Parameters: extensionPointName - The extension point Parameters: discrimAttrName - Attribute on the extension to use as discriminator1 Parameters: discrimAttrValue - Value for discriminator1 attribute The value of the attribute |
getConfigurationElementsForExtension | public ConfigurationElement[] getConfigurationElementsForExtension(String extensionPointName, String discrimAttrName, String discrimAttrValue)(Code) | | Convenience accessor for getting the ConfigurationElement(s) for an extension (of an extension point).
Parameters: extensionPointName - The extension point Parameters: discrimAttrName - Attribute on the extension to use as discriminator Parameters: discrimAttrValue - Value for discriminator attribute The value of the attribute |
getExtensionPoint | public ExtensionPoint getExtensionPoint(String id)(Code) | | Acessor for the ExtensionPoint
Parameters: id - the unique id of the extension point null if the ExtensionPoint is not registered |
getExtensionPoints | public ExtensionPoint[] getExtensionPoints()(Code) | | Acessor for the currently registed ExtensionPoints
array of ExtensionPoints |
getRegistryClassName | public String getRegistryClassName()(Code) | | Accessor for the PluginRegistry class name.
Name of the plugin registry |
registerExtensionPoints | public void registerExtensionPoints()(Code) | | Register Extension Points declared in /org/jpox/plugin/plugin.xml
|
registerExtensions | public void registerExtensions()(Code) | | Register ExtensionPoints and Extensions declared in plugin files
|
resolveConstraints | public void resolveConstraints()(Code) | | Resolve constraints declared in bundle files.
This must be invoked after registering all bundles.
Should log errors if bundles are not resolvable, or raise runtime exceptions.
|
resolveURLAsFileURL | public URL resolveURLAsFileURL(URL url) throws IOException(Code) | | Converts a URL that uses a user-defined protocol into a URL that uses the file protocol.
Parameters: url - the url to be converted the converted URL throws: IOException - |
|
|