Interface AttributesTypeResolver<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:
AttributesStaticTypeResolver, NullMetadataResolver

@MinMuleVersion("4.5.0") public interface AttributesTypeResolver<K> extends NamedTypeResolver
Handles the dynamic MetadataType resolving for the output attributes 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
    • getAttributesType

      org.mule.metadata.api.model.MetadataType getAttributesType(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 resulting Message attributes type of the associated Component's output
      Parameters:
      context - MetadataContext of the MetaData resolution
      key - K representing the type which's structure has to be resolved
      Returns:
      MetadataType associated to the given
      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