public static interface Serializer.EncoderContext extends SerializerLocator, PropertyReferenceManager, NamingStrategyLocator
Serializer.serialize(Encoder, EncoderContext, Argument, Object)
method.Modifier and Type | Method and Description |
---|---|
default io.micronaut.core.convert.ConversionService<?> |
getConversionService() |
default boolean |
hasView(java.lang.Class<?>... views) |
<B,P> SerializationReference<B,P> |
resolveReference(SerializationReference<B,P> reference)
Resolve a reference for the given type and value.
|
findCustomSerializer, findSerializer, findSerializer
popManagedRef, pushManagedRef
findNamingStrategy
@NonNull default io.micronaut.core.convert.ConversionService<?> getConversionService()
default boolean hasView(java.lang.Class<?>... views)
views
- Views to check.true
iff any of the given views is enabled.@Internal @Nullable <B,P> SerializationReference<B,P> resolveReference(@NonNull SerializationReference<B,P> reference)
B
- The bean typeP
- The generic type of the valuereference
- The referencenull
if serialization should be skipped