Class DefaultSerdeIntrospections

java.lang.Object
io.micronaut.serde.support.DefaultSerdeIntrospections
All Implemented Interfaces:
SerdeIntrospections

@Singleton public class DefaultSerdeIntrospections extends Object implements SerdeIntrospections
Default implementation of the SerdeIntrospections interface which looks up instrospections from BeanIntrospector.SHARED.
Author:
graemerocher
  • Constructor Details

    • DefaultSerdeIntrospections

      @Inject public DefaultSerdeIntrospections(SerdeConfiguration configuration)
    • DefaultSerdeIntrospections

      public DefaultSerdeIntrospections()
  • Method Details

    • findSubtypeDeserializables

      public <T> Collection<io.micronaut.core.beans.BeanIntrospection<? extends T>> findSubtypeDeserializables(Class<T> type)
      Description copied from interface: SerdeIntrospections
      Gets an subtype introspection for the given type for deserialization.
      Specified by:
      findSubtypeDeserializables in interface SerdeIntrospections
      Type Parameters:
      T - The generic type
      Parameters:
      type - The type
      Returns:
      A collection of introspections, never null
    • getSerializableIntrospection

      public <T> io.micronaut.core.beans.BeanIntrospection<T> getSerializableIntrospection(io.micronaut.core.type.Argument<T> type)
      Description copied from interface: SerdeIntrospections
      Gets an introspection for the given type for serialization.
      Specified by:
      getSerializableIntrospection in interface SerdeIntrospections
      Type Parameters:
      T - The generic type
      Parameters:
      type - The type
      Returns:
      The introspection, never null
    • resolveIntrospectionForSerialization

      @NonNull protected <T> @NonNull io.micronaut.core.beans.BeanIntrospection<T> resolveIntrospectionForSerialization(@NonNull @NonNull io.micronaut.core.type.Argument<T> type, @NonNull @NonNull io.micronaut.core.beans.BeanIntrospection<T> introspection)
      Resolves an introspection for the purpose of serialization.
      Type Parameters:
      T - The generic type
      Parameters:
      type - The type
      introspection - The introspection
      Returns:
      The resolved introspection
    • getDeserializableIntrospection

      public <T> io.micronaut.core.beans.BeanIntrospection<T> getDeserializableIntrospection(io.micronaut.core.type.Argument<T> type)
      Description copied from interface: SerdeIntrospections
      Gets an introspection for the given type for deserialization.
      Specified by:
      getDeserializableIntrospection in interface SerdeIntrospections
      Type Parameters:
      T - The generic type
      Parameters:
      type - The type
      Returns:
      The introspection, never null
    • resolveIntrospectionForDeserialization

      @NonNull protected <T> @NonNull io.micronaut.core.beans.BeanIntrospection<T> resolveIntrospectionForDeserialization(@NonNull @NonNull io.micronaut.core.type.Argument<T> type, @NonNull @NonNull io.micronaut.core.beans.BeanIntrospection<T> introspection)
      Resolve an introspection.
      Type Parameters:
      T - The generic type
      Parameters:
      type - The type to resolve
      introspection - The introspection
      Returns:
      The resolved introspection