Interface TypeNameMapper

All Superinterfaces:
io.micronaut.core.order.Ordered
All Known Implementing Classes:
DefaultTypeNameMapper

public interface TypeNameMapper extends io.micronaut.core.order.Ordered
Provides mapping of kubernetes list type names to theirs item type names.

The main purpose is to provide mapping for cases when a kubernetes item type name cannot be derived from a kubernetes list type name by removing the List suffix. For example, we can get the item type name V1Secret from the list type name V1SecretList by removing the List suffix, but that can't be applied to V1ResourceClaimList list type name to get its ResourceV1ResourceClaim item type name.

Since:
8.0
  • Field Summary

    Fields inherited from interface io.micronaut.core.order.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets mapping of kubernetes list type names to theirs item type names.

    Methods inherited from interface io.micronaut.core.order.Ordered

    getOrder
  • Method Details

    • getMappings

      Map<String,String> getMappings()
      Gets mapping of kubernetes list type names to theirs item type names.
      Returns:
      list type names to item type names mapping