Class OSGiManifestBuilderFactory

java.lang.Object
org.eclipse.osgi.container.builders.OSGiManifestBuilderFactory

public final class OSGiManifestBuilderFactory extends Object
A factory for creating ModuleRevisionBuilders based on OSGi bundle manifests.
Since:
3.10
Restriction:
This class is not intended to be instantiated by clients.
  • Constructor Details

    • OSGiManifestBuilderFactory

      public OSGiManifestBuilderFactory()
  • Method Details

    • createBuilder

      public static ModuleRevisionBuilder createBuilder(Map<String,String> manifest) throws BundleException
      Creates a builder for the specified bundle manifest
      Parameters:
      manifest - the bundle manifest
      Returns:
      a builder for the specified bundle manifest
      Throws:
      BundleException - if the bundle manifest is invalid
    • createBuilder

      public static ModuleRevisionBuilder createBuilder(Map<String,String> manifest, String symbolicNameAlias, String extraExports, String extraCapabilities) throws BundleException
      Creates a builder for the specified bundle manifest. An alias can be supplied for the symbolic name. Also extra package exports and extra provided capabilities may be specified outside of the supplied manifest. This is useful for creating a builder for the system module which takes into account the configuration properties Constants.FRAMEWORK_SYSTEMPACKAGES_EXTRA and Constants.FRAMEWORK_SYSTEMCAPABILITIES_EXTRA.
      Parameters:
      manifest - the bundle manifest
      symbolicNameAlias - the symbolic name alias. A null value is allowed.
      extraExports - the extra package exports. A null value is allowed.
      extraCapabilities - the extra provided capabilities. A null value is allowed.
      Returns:
      a builder for the specified bundle manifest
      Throws:
      BundleException - if the bundle manifest is invalid