Package org.osgi.service.feature
Interface BuilderFactory
@ProviderType
public interface BuilderFactory
The Builder Factory can be used to obtain builders for the various entities.
-
Method Summary
Modifier and TypeMethodDescriptionnewArtifactBuilder
(ID id) Obtain a new builder for Artifact objects.newBundleBuilder
(ID id) Obtain a new builder for Bundle objects.Obtain a new builder for Configuration objects.newConfigurationBuilder
(String factoryPid, String name) Obtain a new builder for Factory Configuration objects.newExtensionBuilder
(String name, FeatureExtension.Type type, FeatureExtension.Kind kind) Obtain a new builder for Feature objects.newFeatureBuilder
(ID id) Obtain a new builder for Feature objects.
-
Method Details
-
newArtifactBuilder
Obtain a new builder for Artifact objects.- Parameters:
id
- The artifact ID for the artifact object being built.- Returns:
- The builder.
-
newBundleBuilder
Obtain a new builder for Bundle objects.- Parameters:
id
- The ID for the bundle object being built. If the ID has notype
specified, a default type of @{code jar} is assumed.- Returns:
- The builder.
-
newConfigurationBuilder
Obtain a new builder for Configuration objects.- Parameters:
pid
- The persistent ID for the Configuration being built.- Returns:
- The builder.
-
newConfigurationBuilder
Obtain a new builder for Factory Configuration objects.- Parameters:
factoryPid
- The factory persistent ID for the Configuration being built.name
- The name of the configuration being built. The PID for the configuration will be the factoryPid + '~' + name- Returns:
- The builder.
-
newFeatureBuilder
Obtain a new builder for Feature objects.- Parameters:
id
- The ID for the feature object being built. If the ID has notype
specified, a default type ofosgifeature
is assumed.- Returns:
- The builder.
-
newExtensionBuilder
FeatureExtensionBuilder newExtensionBuilder(String name, FeatureExtension.Type type, FeatureExtension.Kind kind) Obtain a new builder for Feature objects.- Parameters:
name
- The extension name.type
- The type of extension: JSON, Text or Artifacts.kind
- The kind of extension: Mandatory, Optional or Transient.- Returns:
- The builder.
-