Module org.mule.sdk.api
Interface PartialTypeKeysResolver<T>
- All Superinterfaces:
org.mule.runtime.api.metadata.resolving.NamedTypeResolver,TypeKeysResolver
A
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.-
Method Summary
Modifier and TypeMethodDescriptionorg.mule.runtime.api.metadata.MetadataKeyresolveChilds(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 levelMetadataKey.Methods inherited from interface org.mule.runtime.api.metadata.resolving.NamedTypeResolver
getCategoryNameMethods inherited from interface org.mule.sdk.api.metadata.resolving.TypeKeysResolver
getKeys, getResolverName
-
Method Details
-
resolveChilds
org.mule.runtime.api.metadata.MetadataKey resolveChilds(MetadataContext context, T partial) throws org.mule.runtime.api.metadata.MetadataResolvingException, org.mule.runtime.api.connection.ConnectionException Further resolves the of types that can be described based on a partial configuration of the Type descriptor, representing them as a multi levelMetadataKey. For example, if we have a location key composed by:
Were theLocation: { continent, country, city }Continentis required to resolve theCountry, and theCountryis required to resolve theCity, thisresolveChilds(org.mule.sdk.api.metadata.MetadataContext, T)method will be invoked with theLocationconfiguration available so far. In this case, possible values for thepartialparameter of this method areLocation: { continent }andLocation: { continent, country }- Parameters:
context-MetadataContextof the Metadata resolutionpartial- the current, partial representation of the type key.- Returns:
- A multi level
MetadataKeyof representing the available types - Throws:
org.mule.runtime.api.metadata.MetadataResolvingException- if an error occurs during theMetadataKeybuilding. SeeFailureCodefor possibleMetadataResolvingExceptionreasonsorg.mule.runtime.api.connection.ConnectionException- if an error occurs when using the connection provided by theMetadataContext
-