Class UserSerdes

java.lang.Object
io.micronaut.serde.util.UserSerdes

@Internal public final class UserSerdes extends Object
The serde classes a registry resolved from beans of the application, as opposed to the serdes Micronaut Serialization registers itself and the generated serdes. A user serde can keep the context it is specialized with, or state of one document, and can change how a value is read, so the shortcuts that skip it are not taken.
Since:
3.3.0
  • Method Details

    • mark

      public static void mark(Class<?> serdeType)
      Records that the registry resolved a serde of this class from a bean of the application.
      Parameters:
      serdeType - The class of the serde
    • isUser

      public static boolean isUser(Class<?> serdeType)
      Parameters:
      serdeType - The class of a serde
      Returns:
      Whether a registry resolved a serde of this class from a bean of the application