Interface Deserializer.DecoderContext

All Superinterfaces:
DeserializerLocator, NamingStrategyLocator, PropertyReferenceManager
Enclosing interface:
Deserializer<T>

public static interface Deserializer.DecoderContext extends PropertyReferenceManager, DeserializerLocator, NamingStrategyLocator
  • Method Details

    • getConversionService

      @NonNull default @NonNull io.micronaut.core.convert.ConversionService getConversionService()
      Returns:
      Conversion service
    • hasView

      default boolean hasView(Class<?>... views)
      Parameters:
      views - Views to check.
      Returns:
      true iff any of the given views is enabled.
    • resolveReference

      @Internal @Nullable <B, P> @Nullable PropertyReference<B,P> resolveReference(@NonNull @NonNull PropertyReference<B,P> reference)
      Resolve a reference for the given type and value.
      Type Parameters:
      B - The bean type
      P - The generic type of the value
      Parameters:
      reference - The reference
      Returns:
      The existing reference, a new one or null if serialization should be skipped
    • getSerdeConfiguration

      @NonNull default @NonNull Optional<SerdeConfiguration> getSerdeConfiguration()
      Get the SerdeConfiguration for this context.
      Returns:
      The SerdeConfiguration, or an empty optional if the default should be used
      Since:
      2.7.0
    • getDeserializationConfiguration

      @NonNull default @NonNull Optional<DeserializationConfiguration> getDeserializationConfiguration()
      Get the DeserializationConfiguration for this context.
      Returns:
      The DeserializationConfiguration, or an empty optional if the default should be used
      Since:
      2.7.0