| java.lang.Object org.jpox.plugin.NonManagedPluginRegistry
NonManagedPluginRegistry | public class NonManagedPluginRegistry implements PluginRegistry(Code) | | Manages the registry of Extensions and Extension Points outside any OSGI container.
This implementation cannot handle multiple versions of the same plugin, so it either raises an exception
or logs the issue as a warning. This is different to that mandated by the OSGi specification 3.0 § 3.5.2
TODO Localise the messages in here.
version: $Revision: 1.26 $ |
extensionPointsByUniqueId | Map extensionPointsByUniqueId(Code) | | extension points keyed by Unique Id (plugin.id +"."+ id) *
|
registeredPluginByManifestURL | Map registeredPluginByManifestURL(Code) | | registered bundles files keyed by the manifest.mf url *
|
registeredPluginBypluginId | Map registeredPluginBypluginId(Code) | | registered bundles files keyed by bundle symbolic name *
|
NonManagedPluginRegistry | public NonManagedPluginRegistry(ClassLoaderResolver clr, String bundleCheckType)(Code) | | Constructor
Parameters: clr - the ClassLoaderResolver Parameters: bundleCheckType - Type of check on bundles (EXCEPTION, LOG, NONE) |
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 |
registerBundle | protected Bundle registerBundle(URL manifest)(Code) | | Register the plugin bundle
Parameters: manifest - the url to the meta-inf/manifest.mf file or a jar file the Plugin |
registerBundle | protected Bundle registerBundle(Manifest mf, URL manifest)(Code) | | Register the plugin bundle
Parameters: mf - the Manifest Parameters: manifest - the url to the meta-inf/manifest.mf file or a jar file the Plugin |
registerExtensionPoints | public void registerExtensionPoints()(Code) | | Look for Bundles/Plugins and register them. Register also ExtensionPoints and Extensions declared in /plugin.xml
files
|
registerExtensions | public void registerExtensions()(Code) | | Look for Bundles/Plugins and register them. Register also ExtensionPoints and Extensions
declared in /plugin.xml files.
|
registerPluginExtensions | public void registerPluginExtensions(URL plugin, Bundle bundle)(Code) | | Register extension and extension points
Parameters: plugin - the URL to the plugin Parameters: bundle - the bundle |
resolveConstraints | public void resolveConstraints()(Code) | | Resolve constraints declared in bundle manifest.mf 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 - |
|
|