Class OSGiManifestBuilderFactory
java.lang.Object
org.eclipse.osgi.container.builders.OSGiManifestBuilderFactory
A factory for creating
ModuleRevisionBuilder
s based on OSGi bundle
manifests.- Since:
- 3.10
- Restriction:
- This class is not intended to be instantiated by clients.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ModuleRevisionBuilder
createBuilder
(Map<String, String> manifest) Creates a builder for the specified bundle manifeststatic ModuleRevisionBuilder
createBuilder
(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_EXTRA
andConstants.FRAMEWORK_SYSTEMCAPABILITIES_EXTRA
.- Parameters:
manifest
- the bundle manifestsymbolicNameAlias
- the symbolic name alias. Anull
value is allowed.extraExports
- the extra package exports. Anull
value is allowed.extraCapabilities
- the extra provided capabilities. Anull
value is allowed.- Returns:
- a builder for the specified bundle manifest
- Throws:
BundleException
- if the bundle manifest is invalid
-