Class BundleDescriptor.Builder
java.lang.Object
org.mule.maven.pom.parser.api.model.BundleDescriptor.Builder
- Enclosing class:
- BundleDescriptor
Builder for creating a
BundleDescriptor-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()setArtifactId(String artifactId) setBaseVersion(String baseVersion) Sets the base version of the bundle, for example "1.0-SNAPSHOT".setClassifier(String classifier) Sets the classifier of the bundle.setExclusions(List<ArtifactCoordinates> exclusions) setGroupId(String groupId) setOptional(String optional) Sets the optional property of the bundle.setProperties(Map<String, String> properties) Sets properties for the descriptor to be used by 3rd party.setSystemPath(String systemPath) Sets the system path of the bundle.Sets the extension type of the bundle.setVersion(String version) This is the version of the bundle.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setGroupId
- Parameters:
groupId- the group id of the bundle. Cannot be null or empty.- Returns:
- the builder
-
setArtifactId
- Parameters:
artifactId- the artifactId id of the bundle. Cannot be null or empty.- Returns:
- the builder
-
setVersion
This is the version of the bundle.- Parameters:
version- the version of the bundle. Cannot be null or empty.- Returns:
- the builder
-
setBaseVersion
Sets the base version of the bundle, for example "1.0-SNAPSHOT". In contrast to theBundleDescriptor.getVersion(), the base version will always refer to the unresolved meta version.- Parameters:
baseVersion- the base version of the bundle. Cannot be null or empty.- Returns:
- the builder
-
setType
Sets the extension type of the bundle.- Parameters:
type- the type id of the bundle. Cannot be null or empty.- Returns:
- the builder
-
setClassifier
Sets the classifier of the bundle.- Parameters:
classifier- classifier of the bundle. Cannot be empty- Returns:
- the builder
-
setSystemPath
Sets the system path of the bundle.- Parameters:
systemPath- systemPath of the bundle.- Returns:
- the builder
-
setOptional
Sets the optional property of the bundle.- Parameters:
optional- optional property of the bundle.- Returns:
- the builder
-
setProperties
Sets properties for the descriptor to be used by 3rd party.- Parameters:
properties- properties/metadata to associated to the bundle.- Returns:
- the builder
-
setExclusions
-
build
- Returns:
- a
BundleDescriptorwith the previous provided parameters to the builder.
-