Class AttributesStaticTypeResolver

java.lang.Object
org.mule.sdk.api.metadata.resolving.AttributesStaticTypeResolver
All Implemented Interfaces:
AttributesTypeResolver, NamedTypeResolver, StaticResolver

@MinMuleVersion("4.5.0") public abstract class AttributesStaticTypeResolver extends Object implements AttributesTypeResolver, StaticResolver
StaticResolver implementation for the attributes OutputModel.

This AttributesTypeResolver is discarded once the extension model is built. It's not registered with the dynamic AttributesTypeResolvers.

Since:
1.0
  • Constructor Details

    • AttributesStaticTypeResolver

      public AttributesStaticTypeResolver()
  • Method Details

    • getCategoryName

      public String getCategoryName()
      This is the name of the TypeResolver Category, that relates a given TypeKeysResolver with the input and output type resolvers. For any given component, all the input and output resolvers must belong to the same Category, that is, have the same categoryName

      The category name is not used for StaticResolvers since they are not registered in the extension.

      Specified by:
      getCategoryName in interface NamedTypeResolver
      Returns:
      name of the category
    • getAttributesType

      public final org.mule.metadata.api.model.MetadataType getAttributesType(MetadataContext context, Object key)
      This method resolves the static output type for an attributes OutputModel proxing to the StaticResolver.getStaticMetadata() method.

      The context and key are not used nor injected.

      Specified by:
      getAttributesType in interface AttributesTypeResolver
      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