Class OSGiManifestBuilderFactory
java.lang.Object
org.eclipse.osgi.container.builders.OSGiManifestBuilderFactory
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ModuleRevisionBuildercreateBuilder(Map<String, String> manifest) Creates a builder for the specified bundle manifeststatic ModuleRevisionBuildercreateBuilder(Map<String, String> manifest, String symbolicNameAlias, String extraExports, String extraCapabilities) Creates a builder for the specified bundle manifest.
-
Constructor Details
-
OSGiManifestBuilderFactory
public OSGiManifestBuilderFactory()
-
-
Method Details
-
createBuilder
public static ModuleRevisionBuilder createBuilder(Map<String, String> manifest) throws BundleExceptionCreates 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 BundleExceptionCreates 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 propertiesConstants.FRAMEWORK_SYSTEMPACKAGES_EXTRAandConstants.FRAMEWORK_SYSTEMCAPABILITIES_EXTRA.- Parameters:
manifest- the bundle manifestsymbolicNameAlias- the symbolic name alias. Anullvalue is allowed.extraExports- the extra package exports. Anullvalue is allowed.extraCapabilities- the extra provided capabilities. Anullvalue is allowed.- Returns:
- a builder for the specified bundle manifest
- Throws:
BundleException- if the bundle manifest is invalid
-