public final class ExtensionManifestBuilder extends Object
ExtensionManifest.| Modifier and Type | Class and Description |
|---|---|
static class |
ExtensionManifestBuilder.DescriberManifestBuilder
A builder to create instances of
DescriberManifest. |
| Constructor and Description |
|---|
ExtensionManifestBuilder() |
| Modifier and Type | Method and Description |
|---|---|
ExtensionManifestBuilder |
addExportedPackages(Collection<String> packages)
Adds the given
packages names to the list of
exported packages |
ExtensionManifestBuilder |
addExportedResources(Collection<String> resources)
Adds the given
resources paths to the list of
exported resources |
ExtensionManifest |
build()
Creates and returns an
ExtensionManifest according to the values set |
ExtensionManifestBuilder |
setDescription(String description)
Sets the extension's description
|
ExtensionManifestBuilder |
setMinMuleVersion(org.mule.runtime.api.meta.MuleVersion muleVersion)
Sets the extension's minimum Mule Runtime version that requires to work correctly
|
ExtensionManifestBuilder |
setName(String name)
Sets the extension's name
|
ExtensionManifestBuilder |
setVersion(String version)
Sets the extension's version
|
ExtensionManifestBuilder.DescriberManifestBuilder |
withDescriber()
Returns a
ExtensionManifestBuilder.DescriberManifestBuilder to be used
for created the associated DescriberManifest. |
public ExtensionManifestBuilder setName(String name)
name - the name the extension will havethis builderpublic ExtensionManifestBuilder setDescription(String description)
description - the name the extension will havethis builderpublic ExtensionManifestBuilder addExportedPackages(Collection<String> packages)
packages names to the list of
exported packagespackages - a List with java package namesthis builderpublic ExtensionManifestBuilder addExportedResources(Collection<String> resources)
resources paths to the list of
exported resourcesresources - a List with resources pathsthis builderpublic ExtensionManifestBuilder setVersion(String version)
version - the name the extension will havethis builderpublic ExtensionManifestBuilder setMinMuleVersion(org.mule.runtime.api.meta.MuleVersion muleVersion)
muleVersion - of the extensionthis builderpublic ExtensionManifestBuilder.DescriberManifestBuilder withDescriber()
ExtensionManifestBuilder.DescriberManifestBuilder to be used
for created the associated DescriberManifest.
Multiple invocations of this method over the same instance will always return the same value
public ExtensionManifest build()
ExtensionManifest according to the values setExtensionManifestIllegalStateException - is setName(String) or setVersion(String) were never invoked or used with a blank valueCopyright © 2017 MuleSoft, Inc.. All rights reserved.