Package io.micronaut.serde.config
Interface SerdeConfiguration
@ConfigurationProperties("micronaut.serde")
public interface SerdeConfiguration
- Author:
- gkrocher
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
Time unit to use when deserializing a numeric value, or when serializing to a numeric value as configured bygetTimeWriteShape()
.static enum
Shape to use for time serialization. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionThe date format to use when serializing and deserializing dates.The packages containing introspections that should be regarded as serializable by default without the need to add theSerdeable
annotation.The unit to use for serializing and deserializing dates to or from numbers.Shape for serializing dates.
-
Field Details
-
PREFIX
- See Also:
-
-
Method Details
-
getDateFormat
The date format to use when serializing and deserializing dates.- Returns:
- the date format to use
-
getTimeWriteShape
Shape for serializing dates.- Returns:
- The date serialization shape
-
getNumericTimeUnit
The unit to use for serializing and deserializing dates to or from numbers. Note thatLocalDate
always uses the epoch day, regardless of this setting.- Returns:
- The time unit
-
getLocale
- Returns:
- The default locale to use.
-
getTimeZone
- Returns:
- The default time zone to use.
-
getIncludedIntrospectionPackages
The packages containing introspections that should be regarded as serializable by default without the need to add theSerdeable
annotation.- Returns:
- the packages to include
-