Interface InputTypeResolver<K>

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:
InputStaticTypeResolver, NullMetadataResolver

@MinMuleVersion("4.5.0") public interface InputTypeResolver<K> extends NamedTypeResolver
Handles the dynamic MetadataType resolving for the Content parameter of an associated component.
Since:
1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    org.mule.metadata.api.model.MetadataType
    Given an instance of type K, resolves their MetadataType which represents the type structure.
    default String
    This is the name of the TypeResolver.

    Methods inherited from interface org.mule.sdk.api.metadata.resolving.NamedTypeResolver

    getCategoryName
  • Method Details

    • getResolverName

      default String getResolverName()
      This is the name of the TypeResolver. It should not be repeated among InputTypeResolver and OutputTypeResolver which are used together.
      Specified by:
      getResolverName in interface NamedTypeResolver
      Returns:
      name of the resolver
    • getInputMetadata

      org.mule.metadata.api.model.MetadataType getInputMetadata(MetadataContext context, K key) throws org.mule.runtime.api.metadata.MetadataResolvingException, org.mule.runtime.api.connection.ConnectionException
      Given an instance of type K, resolves their MetadataType which represents the type structure. This MetadataType will be considered as the main input of an Operation for their parameter marked as Content.
      Parameters:
      context - MetaDataContext of the MetaData resolution
      key - K representing the type which's structure has to be resolved
      Returns:
      the MetadataType of the Content parameter
      Throws:
      org.mule.runtime.api.metadata.MetadataResolvingException - if an error occurs during the MetadataType building. See FailureCode for possible MetadataResolvingException reasons
      org.mule.runtime.api.connection.ConnectionException - if an error occurs when using the connection provided by the MetadataContext