public interface PartialTypeKeysResolver<T> extends TypeKeysResolver
TypeKeysResolver that can handle the resolution of multi-level MetadataKey in a lazy way. On each invocation,
this resolver will perform the resolution of one more level of the MetadataKey tree, based on the configuration of the
previous levels.| Modifier and Type | Method and Description |
|---|---|
org.mule.runtime.api.metadata.MetadataKey |
resolveChilds(MetadataContext context,
T partial)
Further resolves the of types that can be described based on a partial configuration of the Type descriptor, representing
them as a multi level
MetadataKey. |
getKeys, getResolverNameorg.mule.runtime.api.metadata.MetadataKey resolveChilds(MetadataContext context, T partial) throws org.mule.runtime.api.metadata.MetadataResolvingException, org.mule.runtime.api.connection.ConnectionException
MetadataKey.
For example, if we have a location key composed by:
Location: {
continent,
country,
city
}
Were the Continent is required to resolve the Country, and the Country is required to resolve the
City, this resolveChilds(org.mule.sdk.api.metadata.MetadataContext, T) method will be invoked with the Location
configuration available so far. In this case, possible values for the partial parameter of this method are
Location: { continent } and Location: { continent, country } context - MetadataContext of the Metadata resolutionpartial - the current, partial representation of the type key.MetadataKey of representing the available typesorg.mule.runtime.api.metadata.MetadataResolvingException - if an error occurs during the MetadataKey building. See FailureCode for
possible MetadataResolvingException reasonsorg.mule.runtime.api.connection.ConnectionException - if an error occurs when using the connection provided by the MetadataContextCopyright © 2022. All rights reserved.