public static final class ExtensionModelLoadingRequest.Builder extends Object
ExtensionModelLoadingRequest| Modifier and Type | Method and Description |
|---|---|
ExtensionModelLoadingRequest.Builder |
addEnricher(DeclarationEnricher enricher)
Registers a
DeclarationEnricher added to the ones applied by default |
ExtensionModelLoadingRequest.Builder |
addParameter(String key,
Object value)
Adds a custom parameter registered under
key |
ExtensionModelLoadingRequest.Builder |
addParameters(Map<String,Object> parameters)
Adds the contents of the given map as custom parameters
|
ExtensionModelLoadingRequest.Builder |
addValidator(ExtensionModelValidator validator)
Registers an
ExtensionModelValidator added to the ones applied by default. |
ExtensionModelLoadingRequest |
build() |
public ExtensionModelLoadingRequest.Builder addParameter(String key, Object value)
keykey - the key under which the value is to be registeredvalue - the custom parameter valuethis builderIllegalArgumentException - if key or value are nullpublic ExtensionModelLoadingRequest.Builder addParameters(Map<String,Object> parameters)
parameters - a map with custom parametersthis builderIllegalArgumentException - if any of the map entries contains a null valuepublic ExtensionModelLoadingRequest.Builder addValidator(ExtensionModelValidator validator)
ExtensionModelValidator added to the ones applied by default.validator - the added validatorthis builderIllegalArgumentException - if the validator is nullpublic ExtensionModelLoadingRequest.Builder addEnricher(DeclarationEnricher enricher)
DeclarationEnricher added to the ones applied by defaultenricher - the added enricherthis builderIllegalArgumentException - if the enricher is nullpublic ExtensionModelLoadingRequest build()
Copyright © 2022 MuleSoft, Inc.. All rights reserved.