public final class ExternalLibraryModel extends Object implements NamedObject, DescribedObject
| Modifier and Type | Class and Description |
|---|---|
static class |
ExternalLibraryModel.ExternalLibraryModelBuilder
A Builder for creating instances of
ExternalLibraryModel. |
| Modifier and Type | Method and Description |
|---|---|
static ExternalLibraryModel.ExternalLibraryModelBuilder |
builder() |
String |
getDescription()
Returns the component's description
|
String |
getName()
Gets the name of the object
|
Optional<String> |
getRegexMatcher()
If present, returns a regexp which must match the name of the library's file.
|
Optional<String> |
getRequiredClassName()
If present, the library should contain a class of the given name
|
Optional<String> |
getSuggestedCoordinates()
If provided, suggests Maven coordinates where the required library can be found.
|
ExternalLibraryType |
getType() |
boolean |
isOptional() |
public static ExternalLibraryModel.ExternalLibraryModelBuilder builder()
ExternalLibraryModel.ExternalLibraryModelBuilderpublic String getName()
NamedObjectgetName in interface NamedObjectnullpublic String getDescription()
DescribedObjectgetDescription in interface DescribedObjectpublic Optional<String> getRegexMatcher()
Optional regexp to match the library's file namepublic Optional<String> getRequiredClassName()
public Optional<String> getSuggestedCoordinates()
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
public boolean isOptional()
public ExternalLibraryType getType()
Copyright © 2019 MuleSoft, Inc.. All rights reserved.