public class ExtensionDeclarer extends Declarer<ExtensionDeclaration> implements HasModelProperties<ExtensionDeclarer>, HasOperationDeclarer, HasFunctionDeclarer, HasConnectionProviderDeclarer, HasSourceDeclarer, DeclaresExternalLibraries<ExtensionDeclarer>, HasConstructDeclarer<ExtensionDeclarer>
ExtensionDeclaration
through a fluent API.declaration| Constructor and Description |
|---|
ExtensionDeclarer()
Constructor for this descriptor
|
| Modifier and Type | Method and Description |
|---|---|
ExtensionDeclarer |
describedAs(String description)
Adds a description
|
ExtensionDeclarer |
fromVendor(String vendor)
Adds the extension's Vendor name
|
ExtensionDeclarer |
named(String name)
Provides the extension's name
|
ExtensionDeclarer |
onVersion(String version)
Provides the extension's version
|
ExtensionDeclarer |
withCategory(Category category)
Adds the extension's
Category |
ConfigurationDeclarer |
withConfig(String name)
Adds a config of the given name
|
void |
withConnectionProvider(ConnectionProviderDeclarer declarer)
Adds a
ConnectionProviderDeclaration by receiving
a declarer which describes it |
ConnectionProviderDeclarer |
withConnectionProvider(String name)
Adds a connection provider of the given
name |
ExtensionDeclarer |
withConstruct(ConstructDeclarer declarer)
Adds an
ConstructDeclaration by receiving
a declarer which describes it |
ConstructDeclarer |
withConstruct(String name)
Adds a construct of the given
name |
ExtensionDeclarer |
withErrorModel(ErrorModel errorModel)
Registers an
ErrorModel that could be thrown by one their
operations |
ExtensionDeclarer |
withExternalLibrary(ExternalLibraryModel externalLibrary)
Adds the given
externalLibrary |
void |
withFunction(FunctionDeclarer declarer)
Adds a
FunctionDeclaration by receiving
a declarer which describes it |
FunctionDeclarer |
withFunction(String name)
Adds a function of the given
name |
ExtensionDeclarer |
withImportedType(ImportedTypeModel importedType)
Declares that the extension is importing a type from another
extension
|
void |
withMessageSource(SourceDeclarer declarer)
Adds a
SourceDeclaration by receiving
a declarer which describes it |
SourceDeclarer |
withMessageSource(String name)
Adds a message source of the given
name |
ExtensionDeclarer |
withMinMuleVersion(MuleVersion minMuleVersion)
Adds the extension's minimum Mule Version
|
ExtensionDeclarer |
withModelProperty(ModelProperty value)
Adds the given
modelProperty |
void |
withOperation(OperationDeclarer declarer)
Adds an
OperationDeclaration by receiving
a declarer which describes it |
OperationDeclarer |
withOperation(String name)
Adds an operation of the given
name |
ExtensionDeclarer |
withPrivilegedArtifact(String artifactId)
Adds the given artifact ID to the list of artifacts with access to the privileged API declared by the extension begin built
|
ExtensionDeclarer |
withPrivilegedPackage(String packageName)
Adds the given Java package name to the list of privileged exported packages declared by the extension begin built
|
ExtensionDeclarer |
withResource(String resourcePath)
Adds the given
resourcePath to the list of resources
declared by the extension being built |
ExtensionDeclarer |
withSubType(org.mule.metadata.api.model.MetadataType baseType,
org.mule.metadata.api.model.MetadataType subType)
Registers the given
subType as an implementation of the baseType |
ExtensionDeclarer |
withSubTypes(org.mule.metadata.api.model.MetadataType baseType,
Collection<org.mule.metadata.api.model.MetadataType> subTypes)
Registers the given
subTypes as implementations of the baseType |
ExtensionDeclarer |
withType(org.mule.metadata.api.model.ObjectType objectType)
Adds the given
objectType to the list of types declared
by the extension being built. |
ExtensionDeclarer |
withXmlDsl(XmlDslModel xmlDslModel)
Describes the language which allows using the extension
|
getDeclarationpublic ExtensionDeclarer named(String name)
name - the extension's namethis descriptorpublic ExtensionDeclarer onVersion(String version)
version - the extensions versionthis descriptorpublic ExtensionDeclarer describedAs(String description)
description - a descriptionthis descriptorpublic ConfigurationDeclarer withConfig(String name)
name - a non blank nameConfigurationDeclarer which allows describing the created configurationpublic ConnectionProviderDeclarer withConnectionProvider(String name)
namewithConnectionProvider in interface HasConnectionProviderDeclarername - a non blank nameConnectionProviderDeclarer which allows describing the created providerpublic void withConnectionProvider(ConnectionProviderDeclarer declarer)
ConnectionProviderDeclaration by receiving
a declarer which describes itwithConnectionProvider in interface HasConnectionProviderDeclarerdeclarer - a ConnectionProviderDeclarerpublic ConstructDeclarer withConstruct(String name)
namewithConstruct in interface HasConstructDeclarer<ExtensionDeclarer>name - a non blank nameConstructDeclarer which allows describing the created constructpublic ExtensionDeclarer withConstruct(ConstructDeclarer declarer)
HasConstructDeclarerConstructDeclaration by receiving
a declarer which describes itwithConstruct in interface HasConstructDeclarer<ExtensionDeclarer>declarer - a ConstructDeclarationpublic OperationDeclarer withOperation(String name)
namewithOperation in interface HasOperationDeclarername - a non blank nameOperationDeclarer which allows describing the created operationpublic void withOperation(OperationDeclarer declarer)
OperationDeclaration by receiving
a declarer which describes itwithOperation in interface HasOperationDeclarerdeclarer - a OperationDeclarationpublic SourceDeclarer withMessageSource(String name)
namewithMessageSource in interface HasSourceDeclarername - a non blank nameSourceDeclarer which allows describing the created providerpublic void withMessageSource(SourceDeclarer declarer)
SourceDeclaration by receiving
a declarer which describes itwithMessageSource in interface HasSourceDeclarerdeclarer - a SourceDeclarerpublic ExtensionDeclarer withModelProperty(ModelProperty value)
modelPropertywithModelProperty in interface HasModelProperties<ExtensionDeclarer>value - a ModelPropertythis declarerpublic ExtensionDeclarer withType(org.mule.metadata.api.model.ObjectType objectType)
objectType to the list of types declared
by the extension being built.objectType - an ObjectTypethis declarerpublic ExtensionDeclarer withPrivilegedPackage(String packageName)
packageName - package to export on the privileged plugin's APIthis declarerpublic ExtensionDeclarer withPrivilegedArtifact(String artifactId)
artifactId - artifact ID that will have access to the privileged plugin's APIthis declarerpublic ExtensionDeclarer withResource(String resourcePath)
resourcePath to the list of resources
declared by the extension being builtresourcePath - the relative path to the extension's resourcethis declarerpublic ExtensionDeclarer withImportedType(ImportedTypeModel importedType)
importedType - a ImportedTypeModel with the import informationthis declarerpublic ExtensionDeclarer withXmlDsl(XmlDslModel xmlDslModel)
xmlDslModel - an XmlDslModelthis declarerpublic ExtensionDeclarer withSubType(org.mule.metadata.api.model.MetadataType baseType, org.mule.metadata.api.model.MetadataType subType)
subType as an implementation of the baseTypebaseType - a base typesubType - a sub type implementationthis declarerpublic ExtensionDeclarer withSubTypes(org.mule.metadata.api.model.MetadataType baseType, Collection<org.mule.metadata.api.model.MetadataType> subTypes)
subTypes as implementations of the baseTypebaseType - a base typesubTypes - a Collection of sub type implementationsthis declarerpublic ExtensionDeclarer fromVendor(String vendor)
vendor - namethis descriptorpublic ExtensionDeclarer withCategory(Category category)
Categorycategory - of the extensionthis descriptorpublic ExtensionDeclarer withMinMuleVersion(MuleVersion minMuleVersion)
minMuleVersion - of the extensionthis descriptorpublic ExtensionDeclarer withErrorModel(ErrorModel errorModel)
ErrorModel that could be thrown by one their
operationserrorModel - to addthis descriptorpublic ExtensionDeclarer withExternalLibrary(ExternalLibraryModel externalLibrary)
externalLibrarywithExternalLibrary in interface DeclaresExternalLibraries<ExtensionDeclarer>externalLibrary - the ExternalLibraryModel to be referencedthis instancepublic FunctionDeclarer withFunction(String name)
namewithFunction in interface HasFunctionDeclarername - a non blank nameOperationDeclarer which allows describing the created operationpublic void withFunction(FunctionDeclarer declarer)
FunctionDeclaration by receiving
a declarer which describes itwithFunction in interface HasFunctionDeclarerdeclarer - a FunctionDeclarerCopyright © 2017 MuleSoft, Inc.. All rights reserved.