public class MavenToolingVersionResolver extends Object implements ToolingVersionResolver, DynamicToolingVersionResolverConfiguration
ToolingVersionResolver.ToolingVersionResolver.ToolingVersionToolingVersionResolverConfiguration.ToolingVersionResolverConfigurationBuilder| Constructor and Description |
|---|
MavenToolingVersionResolver(ToolingVersionResolverConfiguration configuration,
org.mule.maven.client.api.MavenClient mavenClient) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
allowedSuffixes() |
Map<String,String> |
dynamicMappings() |
DynamicToolingVersionResolverConfiguration |
getToolingVersionResolverConfiguration() |
LinkedHashMap<String,String> |
mappings() |
org.mule.maven.client.api.model.MavenConfiguration |
mavenConfiguration() |
UpdatePolicy |
remoteVersionUpdatePolicy() |
ToolingVersionResolver.ToolingVersion |
resolve(String muleVersion) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuilderpublic MavenToolingVersionResolver(ToolingVersionResolverConfiguration configuration, org.mule.maven.client.api.MavenClient mavenClient)
public DynamicToolingVersionResolverConfiguration getToolingVersionResolverConfiguration()
getToolingVersionResolverConfiguration in interface ToolingVersionResolverDynamicToolingVersionResolverConfiguration in order to let clients know the status of the dynamic
mappings resolved using Maven.public ToolingVersionResolver.ToolingVersion resolve(String muleVersion)
resolve in interface ToolingVersionResolvermuleVersion - a given Mule Runtime version.public Map<String,String> dynamicMappings()
dynamicMappings in interface DynamicToolingVersionResolverConfigurationMap with the resolved dynamic mappings from Maven that will be populated whenever
ToolingVersionResolver uses Maven to resolve the Tooling Runtime Client version for a Mule Runtime that is
not defined in ToolingVersionResolverConfiguration.mappings().
The Map has as key the Mule Runtime version as Maven range [4.0.0,4.1.0) and value is
the resolved Tooling Runtime Client version.public org.mule.maven.client.api.model.MavenConfiguration mavenConfiguration()
mavenConfiguration in interface ToolingVersionResolverConfigurationMavenConfiguration to retrieve the versions for a range of Tooling Runtime Client.public UpdatePolicy remoteVersionUpdatePolicy()
remoteVersionUpdatePolicy in interface ToolingVersionResolverConfigurationUpdatePolicy for updating remote versions resolved for Tooling Runtime Client using Maven. Default is
UpdatePolicy.UPDATE_POLICY_DAILY.public List<String> allowedSuffixes()
allowedSuffixes in interface ToolingVersionResolverConfiguration4.1.0-SNAPSHOT or 4.0.0-beta-1. On these cases
those versions would be included in the list of versions resolved for [4.0.0,4.1.0) therefore this allows to
define an allowlist for the suffix that should be considered.public LinkedHashMap<String,String> mappings()
mappings in interface ToolingVersionResolverConfigurationLinkedHashMap with the set of mappings versions. Keys are Mule Runtime version or ranges in
Maven format and value is a Tooling Runtime Client version. The mapping entries will be considered in order, useful
when needed to do a mapping for an SNAPSHOT version and at the same time there is already a range defined in mapping
for that version. This takes precedence over the Maven remote resolution.Copyright © 2022 MuleSoft, Inc.. All rights reserved.