Package io.micronaut.serde.support
Class DefaultSerdeIntrospections
java.lang.Object
io.micronaut.serde.support.DefaultSerdeIntrospections
- All Implemented Interfaces:
SerdeIntrospections
Default implementation of the
SerdeIntrospections
interface
which looks up instrospections from BeanIntrospector.SHARED
.- Author:
- graemerocher
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> Collection<io.micronaut.core.beans.BeanIntrospection<? extends T>>
findSubtypeDeserializables
(Class<T> type) Gets an subtype introspection for the given type for deserialization.<T> io.micronaut.core.beans.BeanIntrospection<T>
getDeserializableIntrospection
(io.micronaut.core.type.Argument<T> type) Gets an introspection for the given type for deserialization.<T> io.micronaut.core.beans.BeanIntrospection<T>
getSerializableIntrospection
(io.micronaut.core.type.Argument<T> type) Gets an introspection for the given type for serialization.protected <T> @NonNull io.micronaut.core.beans.BeanIntrospection<T>
resolveIntrospectionForDeserialization
(@NonNull io.micronaut.core.type.Argument<T> type, @NonNull io.micronaut.core.beans.BeanIntrospection<T> introspection) Resolve an introspection.protected <T> @NonNull io.micronaut.core.beans.BeanIntrospection<T>
resolveIntrospectionForSerialization
(@NonNull io.micronaut.core.type.Argument<T> type, @NonNull io.micronaut.core.beans.BeanIntrospection<T> introspection) Resolves an introspection for the purpose of serialization.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.serde.SerdeIntrospections
getBeanIntrospector
-
Constructor Details
-
DefaultSerdeIntrospections
-
DefaultSerdeIntrospections
public DefaultSerdeIntrospections()
-
-
Method Details
-
findSubtypeDeserializables
public <T> Collection<io.micronaut.core.beans.BeanIntrospection<? extends T>> findSubtypeDeserializables(Class<T> type) Description copied from interface:SerdeIntrospections
Gets an subtype introspection for the given type for deserialization.- Specified by:
findSubtypeDeserializables
in interfaceSerdeIntrospections
- Type Parameters:
T
- The generic type- Parameters:
type
- The type- Returns:
- A collection of introspections, never
null
-
getSerializableIntrospection
public <T> io.micronaut.core.beans.BeanIntrospection<T> getSerializableIntrospection(io.micronaut.core.type.Argument<T> type) Description copied from interface:SerdeIntrospections
Gets an introspection for the given type for serialization.- Specified by:
getSerializableIntrospection
in interfaceSerdeIntrospections
- Type Parameters:
T
- The generic type- Parameters:
type
- The type- Returns:
- The introspection, never
null
-
resolveIntrospectionForSerialization
@NonNull protected <T> @NonNull io.micronaut.core.beans.BeanIntrospection<T> resolveIntrospectionForSerialization(@NonNull @NonNull io.micronaut.core.type.Argument<T> type, @NonNull @NonNull io.micronaut.core.beans.BeanIntrospection<T> introspection) Resolves an introspection for the purpose of serialization.- Type Parameters:
T
- The generic type- Parameters:
type
- The typeintrospection
- The introspection- Returns:
- The resolved introspection
-
getDeserializableIntrospection
public <T> io.micronaut.core.beans.BeanIntrospection<T> getDeserializableIntrospection(io.micronaut.core.type.Argument<T> type) Description copied from interface:SerdeIntrospections
Gets an introspection for the given type for deserialization.- Specified by:
getDeserializableIntrospection
in interfaceSerdeIntrospections
- Type Parameters:
T
- The generic type- Parameters:
type
- The type- Returns:
- The introspection, never
null
-
resolveIntrospectionForDeserialization
@NonNull protected <T> @NonNull io.micronaut.core.beans.BeanIntrospection<T> resolveIntrospectionForDeserialization(@NonNull @NonNull io.micronaut.core.type.Argument<T> type, @NonNull @NonNull io.micronaut.core.beans.BeanIntrospection<T> introspection) Resolve an introspection.- Type Parameters:
T
- The generic type- Parameters:
type
- The type to resolveintrospection
- The introspection- Returns:
- The resolved introspection
-