public class DefaultExtensionDiscoveryRequest extends Object implements ExtensionDiscoveryRequest
ExtensionDiscoveryRequest, which contains the parameters that can be given to
ExtensionModelDiscoverer.discoverPluginsExtensionModels(ExtensionDiscoveryRequest)ExtensionDiscoveryRequest.ExtensionDiscoveryRequestBuilder| Constructor and Description |
|---|
DefaultExtensionDiscoveryRequest(Collection<ArtifactPluginDescriptor> artifactPlugins,
Set<org.mule.runtime.api.meta.model.ExtensionModel> parentArtifactExtensions,
boolean parallelDiscovery,
boolean enrichDescriptions) |
DefaultExtensionDiscoveryRequest(Collection<ArtifactPluginDescriptor> artifactPlugins,
Set<org.mule.runtime.api.meta.model.ExtensionModel> parentArtifactExtensions,
boolean parallelDiscovery,
boolean enrichDescriptions,
boolean ocsEnabled,
Map<String,Object> customParameters) |
| Modifier and Type | Method and Description |
|---|---|
Collection<ArtifactPluginDescriptor> |
getArtifactPluginDescriptors() |
<T> Optional<T> |
getParameter(String key)
Obtains the custom parameter registered under
key. |
Map<String,Object> |
getParameters()
Returns all the parameters for this discovery request.
|
Set<org.mule.runtime.api.meta.model.ExtensionModel> |
getParentArtifactExtensions() |
boolean |
isEnrichDescriptions() |
boolean |
isOCSEnabled() |
boolean |
isParallelDiscovery()
Parallel discovery will try to parallelize only the discovery for extensions that do not depend on the DSL of other
extensions.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuilderpublic DefaultExtensionDiscoveryRequest(Collection<ArtifactPluginDescriptor> artifactPlugins, Set<org.mule.runtime.api.meta.model.ExtensionModel> parentArtifactExtensions, boolean parallelDiscovery, boolean enrichDescriptions)
public DefaultExtensionDiscoveryRequest(Collection<ArtifactPluginDescriptor> artifactPlugins, Set<org.mule.runtime.api.meta.model.ExtensionModel> parentArtifactExtensions, boolean parallelDiscovery, boolean enrichDescriptions, boolean ocsEnabled, Map<String,Object> customParameters)
public <T> Optional<T> getParameter(String key)
ExtensionDiscoveryRequestkey.getParameter in interface ExtensionDiscoveryRequestT - generic type of the expected value.key - the key under which the wanted value is registered.Optional value.public Map<String,Object> getParameters()
ExtensionDiscoveryRequestgetParameters in interface ExtensionDiscoveryRequestpublic Collection<ArtifactPluginDescriptor> getArtifactPluginDescriptors()
getArtifactPluginDescriptors in interface ExtensionDiscoveryRequestArtifactPluginDescriptors for artifact plugins deployed inside the artifact. Non-null.public Set<org.mule.runtime.api.meta.model.ExtensionModel> getParentArtifactExtensions()
getParentArtifactExtensions in interface ExtensionDiscoveryRequestSet of ExtensionModel to also take into account when parsing extensions.public boolean isParallelDiscovery()
ExtensionDiscoveryRequest
Parallelism is achieved using the fork-join pool.
isParallelDiscovery in interface ExtensionDiscoveryRequesttrue if the extension model discovery process will attempt to discover an extension model from the
classloaders in parallel instead of sequentially.public boolean isEnrichDescriptions()
isEnrichDescriptions in interface ExtensionDiscoveryRequesttrue if any DeclarationEnricher that adds descriptions to an ExtensionDeclaration must be
executed, false if it must be skipped.public boolean isOCSEnabled()
isOCSEnabled in interface ExtensionDiscoveryRequestCopyright © 2003–2022 MuleSoft, Inc.. All rights reserved.