- Type Parameters:
K- the generic type of the objects to be used as MetadataKeyId representing a type structure
- All Superinterfaces:
NamedTypeResolver
- All Known Implementing Classes:
NullMetadataResolver,OutputStaticTypeResolver
Handles the dynamic
MetadataType resolving for the output of an associated component.- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionorg.mule.metadata.api.model.MetadataTypegetOutputType(MetadataContext context, K key) Given an instance of typeK, resolves theirMetadataType, which represents the type structure.default StringThis is the name of the TypeResolver.Methods inherited from interface org.mule.sdk.api.metadata.resolving.NamedTypeResolver
getCategoryName
-
Method Details
-
getResolverName
This is the name of the TypeResolver. It should not be repeated amongInputTypeResolverandOutputTypeResolverwhich are used together.- Specified by:
getResolverNamein interfaceNamedTypeResolver- Returns:
- name of the resolver
-
getOutputType
org.mule.metadata.api.model.MetadataType getOutputType(MetadataContext context, K key) throws org.mule.runtime.api.metadata.MetadataResolvingException, org.mule.runtime.api.connection.ConnectionException Given an instance of typeK, resolves theirMetadataType, which represents the type structure. ThisMetadataTypewill be considered as the output or result of the Component- Parameters:
context-MetadataContextof the MetaData resolutionkey-Krepresenting the type which's structure has to be resolved- Returns:
MetadataTypefrom the given- Throws:
org.mule.runtime.api.metadata.MetadataResolvingException- if an error occurs during theMetadataTypebuilding. SeeFailureCodefor possibleMetadataResolvingExceptionreasonsorg.mule.runtime.api.connection.ConnectionException- if an error occurs when using the connection provided by theMetadataContext
-