Class DefaultSerdeIntrospections

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

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

    • DefaultSerdeIntrospections

      @Inject public DefaultSerdeIntrospections(io.micronaut.serde.config.SerdeConfiguration configuration)
    • DefaultSerdeIntrospections

      public DefaultSerdeIntrospections()
  • Method Details

    • findSubtypeDeserializables

      public <T> Collection<io.micronaut.core.beans.BeanIntrospection<? extends T>> findSubtypeDeserializables(Class<T> type)
      Specified by:
      findSubtypeDeserializables in interface io.micronaut.serde.SerdeIntrospections
    • getSerializableIntrospection

      public <T> io.micronaut.core.beans.BeanIntrospection<T> getSerializableIntrospection(io.micronaut.core.type.Argument<T> type)
      Specified by:
      getSerializableIntrospection in interface io.micronaut.serde.SerdeIntrospections
    • 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)
      Specified by:
      getDeserializableIntrospection in interface io.micronaut.serde.SerdeIntrospections
    • 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