Class OSGiPluginRegistry

    • Constructor Detail

      • OSGiPluginRegistry

        public OSGiPluginRegistry​(ClassLoaderResolver clr)
        Constructor
        Parameters:
        clr - the ClassLoaderResolver
    • Method Detail

      • getExtensionPoint

        public ExtensionPoint getExtensionPoint​(String id)
        Description copied from interface: PluginRegistry
        Acessor for the ExtensionPoint
        Specified by:
        getExtensionPoint in interface PluginRegistry
        Parameters:
        id - the unique id of the extension point
        Returns:
        null if the ExtensionPoint is not registered
      • registerExtensionPoints

        public void registerExtensionPoints()
        Description copied from interface: PluginRegistry
        Look for Bundles/Plugins and register them. Register also ExtensionPoints and Extensions declared in /plugin.xml files
        Specified by:
        registerExtensionPoints in interface PluginRegistry
      • registerExtensions

        public void registerExtensions()
        Description copied from interface: PluginRegistry
        Look for Bundles/Plugins and register them. Register also ExtensionPoints and Extensions declared in /plugin.xml files
        Specified by:
        registerExtensions in interface PluginRegistry
      • registerExtensionPointsForPluginInternal

        protected void registerExtensionPointsForPluginInternal​(List<ExtensionPoint> extPoints,
                                                                boolean updateExtensionPointsArray)
        Register extension-points for the specified plugin.
        Parameters:
        extPoints - ExtensionPoints for this plugin
        updateExtensionPointsArray - Whether to update "extensionPoints" array
      • resolveURLAsFileURL

        public URL resolveURLAsFileURL​(URL url)
                                throws IOException
        Description copied from interface: PluginRegistry
        Converts a URL that uses a user-defined protocol into a URL that uses the file protocol.
        Specified by:
        resolveURLAsFileURL in interface PluginRegistry
        Parameters:
        url - the url to be converted
        Returns:
        the converted URL
        Throws:
        IOException - if an error occurs
      • resolveConstraints

        public void resolveConstraints()
        Description copied from interface: PluginRegistry
        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.
        Specified by:
        resolveConstraints in interface PluginRegistry