Class SerializationModelCreator

java.lang.Object
org.eclipse.yasson.internal.serializer.SerializationModelCreator

public class SerializationModelCreator extends Object
Create or obtain already created type serializer.
  • Constructor Details

    • SerializationModelCreator

      public SerializationModelCreator(JsonbContext jsonbContext)
      Create new instance.
      Parameters:
      jsonbContext - jsonb context
  • Method Details

    • wrapInCommonSet

      public static ModelSerializer wrapInCommonSet(ModelSerializer modelSerializer, Customization customization, JsonbContext jsonbContext)
      Wrap ModelSerializer in the common set of serializers.
      Parameters:
      modelSerializer - serializer to be wrapped
      customization - component customization
      jsonbContext - jsonb context
      Returns:
      wrapped serializer
    • serializerChain

      public ModelSerializer serializerChain(Type type, boolean rootValue, boolean resolveRootAdapter)
      Create new ModelSerializer of the given type.
      Parameters:
      type - type to be serialized
      rootValue - whether it is a root value
      resolveRootAdapter - 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 new ModelSerializer of the given type.
      Parameters:
      chain - chain of types used before the one currently processed
      type - type to be serialized
      propertyCustomization - component customization
      rootValue - whether it is a root value
      isKey - whether it is a key
      Returns:
      type model serializer