Module org.eclipse.yasson
Class SerializationModelCreator
java.lang.Object
org.eclipse.yasson.internal.serializer.SerializationModelCreator
Create or obtain already created type serializer.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionserializerChain(Type type, boolean rootValue, boolean resolveRootAdapter) Create newModelSerializerof the given type.serializerChainRuntime(LinkedList<Type> chain, Type type, Customization propertyCustomization, boolean rootValue, boolean isKey) Create newModelSerializerof the given type.static ModelSerializerwrapInCommonSet(ModelSerializer modelSerializer, Customization customization, JsonbContext jsonbContext) WrapModelSerializerin the common set of serializers.
-
Constructor Details
-
SerializationModelCreator
Create new instance.- Parameters:
jsonbContext- jsonb context
-
-
Method Details
-
wrapInCommonSet
public static ModelSerializer wrapInCommonSet(ModelSerializer modelSerializer, Customization customization, JsonbContext jsonbContext) WrapModelSerializerin the common set of serializers.- Parameters:
modelSerializer- serializer to be wrappedcustomization- component customizationjsonbContext- jsonb context- Returns:
- wrapped serializer
-
serializerChain
Create newModelSerializerof the given type.- Parameters:
type- type to be serializedrootValue- whether it is a root valueresolveRootAdapter- whether to resolve root adapter- Returns:
- type model serializer
-
serializerChainRuntime
public ModelSerializer serializerChainRuntime(LinkedList<Type> chain, Type type, Customization propertyCustomization, boolean rootValue, boolean isKey) Create newModelSerializerof the given type.- Parameters:
chain- chain of types used before the one currently processedtype- type to be serializedpropertyCustomization- component customizationrootValue- whether it is a root valueisKey- whether it is a key- Returns:
- type model serializer
-