public static class ExternalLibraryModel.ExternalLibraryModelBuilder extends Object
ExternalLibraryModel.
Instances are to be created through the ExternalLibraryModel.builder() method.
Instances are not reusable.
public ExternalLibraryModel.ExternalLibraryModelBuilder withName(String name)
name - the library namethis builderIllegalArgumentException - if name is nullpublic ExternalLibraryModel.ExternalLibraryModelBuilder withDescription(String description)
description - the library's descriptionthis builderpublic ExternalLibraryModel.ExternalLibraryModelBuilder withRegexpMatcher(String regexMatcher)
regexMatcher - a regexp to match the library's filenamethis builderpublic ExternalLibraryModel.ExternalLibraryModelBuilder withRequiredClassName(String requiredClassName)
requiredClassName - the name of the required classthis builderpublic ExternalLibraryModel.ExternalLibraryModelBuilder withType(ExternalLibraryType type)
type - the type of the librarythis builderpublic ExternalLibraryModel.ExternalLibraryModelBuilder withCoordinates(String coordinates)
groupId:artifactId:packaging:classifier:version.
Keep in mind that not all the values of the coordinates are required, for example:
org.mule.modules:a-required-lib:1.0.0 are valid coordinates, which communicates the groupId,
artifactId and version of the external library.
By default, the packaging is jar, so if is required to use a native library, like a .DLL, you will provide:
org.mule.module:a-native-lib:dll:1.0.0 where dll is the packaging of the library.
More information in: https://maven.apache.org/pom.html#Maven_Coordinates
coordinates - The library coordinatesthis builderpublic ExternalLibraryModel.ExternalLibraryModelBuilder isOptional(boolean optional)
optional - boolean indicating the optionality of the librarythis builderpublic ExternalLibraryModel build()
ExternalLibraryModel instanceIllegalStateException - if withName(String) was not providedCopyright © 2020 MuleSoft, Inc.. All rights reserved.