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.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.micronaut.serde.SerdeIntrospections

    io.micronaut.serde.SerdeIntrospections.RuntimeIntrospectionKind, io.micronaut.serde.SerdeIntrospections.RuntimeIntrospectionRequest<T>, io.micronaut.serde.SerdeIntrospections.RuntimeIntrospectionResolver
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    DefaultSerdeIntrospections(io.micronaut.serde.config.SerdeConfiguration configuration)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> Collection<io.micronaut.core.beans.BeanIntrospection<? extends T>>
     
    <T> io.micronaut.core.beans.BeanIntrospection<T>
    getDeserializableIntrospection(io.micronaut.core.type.Argument<T> type)
     
    <T> io.micronaut.core.beans.BeanIntrospection<T>
    getSerializableIntrospection(io.micronaut.core.type.Argument<T> type)
     
    protected <T> io.micronaut.core.beans.BeanIntrospection<T>
    resolveIntrospectionForDeserialization(io.micronaut.core.type.Argument<T> type, io.micronaut.core.beans.BeanIntrospection<T> introspection)
    Resolve an introspection.
    protected <T> io.micronaut.core.beans.BeanIntrospection<T>
    resolveIntrospectionForSerialization(io.micronaut.core.type.Argument<T> type, io.micronaut.core.beans.BeanIntrospection<T> introspection)
    Resolves an introspection for the purpose of serialization.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.micronaut.serde.SerdeIntrospections

    getBeanIntrospector, withRuntimeIntrospectionResolver
  • 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

      protected <T> io.micronaut.core.beans.BeanIntrospection<T> resolveIntrospectionForSerialization(io.micronaut.core.type.Argument<T> type, 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

      protected <T> io.micronaut.core.beans.BeanIntrospection<T> resolveIntrospectionForDeserialization(io.micronaut.core.type.Argument<T> type, 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