public final class DefaultExtensionLoadingContext extends Object implements ExtensionLoadingContext
ExtensionLoadingContext. The fact that this class's attributes are immutable, doesn't mean that
their inner state is in fact immutable also.| Constructor and Description |
|---|
DefaultExtensionLoadingContext(ClassLoader extensionClassLoader,
org.mule.runtime.api.dsl.DslResolvingContext dslResolvingContext) |
DefaultExtensionLoadingContext(org.mule.runtime.api.meta.model.declaration.fluent.ExtensionDeclarer extensionDeclarer,
ClassLoader extensionClassLoader,
org.mule.runtime.api.dsl.DslResolvingContext dslResolvingContext) |
| Modifier and Type | Method and Description |
|---|---|
ExtensionLoadingContext |
addCustomDeclarationEnricher(DeclarationEnricher enricher)
Registers a custom
DeclarationEnricher which is executed before the ones that
the runtime automatically applies. |
ExtensionLoadingContext |
addCustomDeclarationEnrichers(Collection<DeclarationEnricher> enrichers)
Registers custom
DeclarationEnricher which are executed before the ones that
the runtime automatically applies. |
ExtensionLoadingContext |
addCustomValidator(ExtensionModelValidator extensionModelValidator)
Registers a custom
ExtensionModelValidator to be executed on top of the ones which
the runtime applies by default. |
ExtensionLoadingContext |
addCustomValidators(Collection<ExtensionModelValidator> extensionModelValidators)
Registers custom
ExtensionModelValidator to be executed on top of the ones which
the runtime applies by default. |
void |
addParameter(String key,
Object value)
Adds a custom parameter registered under
key |
void |
addParameters(Map<String,Object> parameters)
Adds the contents of the given map as custom parameters
|
List<DeclarationEnricher> |
getCustomDeclarationEnrichers() |
List<ExtensionModelValidator> |
getCustomValidators() |
org.mule.runtime.api.dsl.DslResolvingContext |
getDslResolvingContext() |
ClassLoader |
getExtensionClassLoader() |
org.mule.runtime.api.meta.model.declaration.fluent.ExtensionDeclarer |
getExtensionDeclarer()
The
ExtensionDeclarer in which
the extension is being described into |
<T> Optional<T> |
getParameter(String key)
Obtains the custom parameter registered under
key. |
public DefaultExtensionLoadingContext(ClassLoader extensionClassLoader, org.mule.runtime.api.dsl.DslResolvingContext dslResolvingContext)
public DefaultExtensionLoadingContext(org.mule.runtime.api.meta.model.declaration.fluent.ExtensionDeclarer extensionDeclarer,
ClassLoader extensionClassLoader,
org.mule.runtime.api.dsl.DslResolvingContext dslResolvingContext)
public org.mule.runtime.api.meta.model.declaration.fluent.ExtensionDeclarer getExtensionDeclarer()
ExtensionDeclarer in which
the extension is being described intogetExtensionDeclarer in interface ExtensionLoadingContextnull ExtensionDeclarerpublic void addParameter(String key, Object value)
keyaddParameter in interface ExtensionLoadingContextkey - the key under which the value is to be registeredvalue - the custom parameter valuepublic void addParameters(Map<String,Object> parameters)
ExtensionLoadingContextaddParameters in interface ExtensionLoadingContextparameters - a map with custom parameterspublic <T> Optional<T> getParameter(String key)
key.getParameter in interface ExtensionLoadingContextT - generic type of the expected valuekey - the key under which the wanted value is registeredOptional valuepublic ExtensionLoadingContext addCustomValidator(ExtensionModelValidator extensionModelValidator)
ExtensionModelValidator to be executed on top of the ones which
the runtime applies by default.
Custom validators will not apply globally but just for the model being loaded with this context.
addCustomValidator in interface ExtensionLoadingContextextensionModelValidator - the custom validatorthis instancepublic ExtensionLoadingContext addCustomValidators(Collection<ExtensionModelValidator> extensionModelValidators)
ExtensionModelValidator to be executed on top of the ones which
the runtime applies by default.
These custom validators will not apply globaly but just for the model being loaded with this context.
addCustomValidators in interface ExtensionLoadingContextextensionModelValidators - the custom validatorsthis instancepublic ExtensionLoadingContext addCustomDeclarationEnricher(DeclarationEnricher enricher)
DeclarationEnricher which is executed before the ones that
the runtime automatically applies.addCustomDeclarationEnricher in interface ExtensionLoadingContextenricher - the custom enricherthis instancepublic ExtensionLoadingContext addCustomDeclarationEnrichers(Collection<DeclarationEnricher> enrichers)
DeclarationEnricher which are executed before the ones that
the runtime automatically applies.addCustomDeclarationEnrichers in interface ExtensionLoadingContextenrichers - the custom enrichersthis instancepublic ClassLoader getExtensionClassLoader()
getExtensionClassLoader in interface ExtensionLoadingContextClassLoaderpublic org.mule.runtime.api.dsl.DslResolvingContext getDslResolvingContext()
getDslResolvingContext in interface ExtensionLoadingContextDslResolvingContext with all the dependencies to load an ExtensionModelpublic List<DeclarationEnricher> getCustomDeclarationEnrichers()
getCustomDeclarationEnrichers in interface ExtensionLoadingContextpublic List<ExtensionModelValidator> getCustomValidators()
getCustomValidators in interface ExtensionLoadingContextCopyright © 2017 MuleSoft, Inc.. All rights reserved.