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 |
---|---|
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, getResolverName
getCategoryName
MetadataKey resolveChilds(MetadataContext context, T partial) throws MetadataResolvingException, 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.runtime.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 typesMetadataResolvingException
- if an error occurs during the MetadataKey
building. See FailureCode
for
possible MetadataResolvingException
reasonsConnectionException
- if an error occurs when using the connection provided by the MetadataContext
Copyright © 2018. All rights reserved.