public interface DeserializerLocator
Modifier and Type | Method and Description |
---|---|
<T,D extends Deserializer<? extends T>> |
findCustomDeserializer(java.lang.Class<? extends D> deserializerClass)
Gets a custom deserializer.
|
<T> Deserializer<? extends T> |
findDeserializer(io.micronaut.core.type.Argument<? extends T> type)
Finds a deserializer for the given type.
|
default <T> Deserializer<? extends T> |
findDeserializer(java.lang.Class<? extends T> type)
Finds a deserializer for the given type.
|
<T> java.util.Collection<io.micronaut.core.beans.BeanIntrospection<? extends T>> |
getDeserializableSubtypes(java.lang.Class<T> superType)
Locates desrializable subtypes for the given super type.
|
@NonNull <T,D extends Deserializer<? extends T>> D findCustomDeserializer(@NonNull java.lang.Class<? extends D> deserializerClass) throws SerdeException
T
- The generic typeD
- The deserializer typedeserializerClass
- The deserializer class, should not be null
SerdeException
- if no deserializer is found@NonNull <T> Deserializer<? extends T> findDeserializer(@NonNull io.micronaut.core.type.Argument<? extends T> type) throws SerdeException
T
- The generic typetype
- The type, should not be null
SerdeException
- if no deserializer is found@NonNull default <T> Deserializer<? extends T> findDeserializer(@NonNull java.lang.Class<? extends T> type) throws SerdeException
T
- The generic typetype
- The type, should not be null
SerdeException
- if no deserializer is found<T> java.util.Collection<io.micronaut.core.beans.BeanIntrospection<? extends T>> getDeserializableSubtypes(java.lang.Class<T> superType)
T
- The generic super typesuperType
- The super type