Interface ExpressionSerializerFactory<T>

  • Type Parameters:
    T - The serialization target type

    public interface ExpressionSerializerFactory<T>
    A factory for custom expression serializers. Interface implemented by the expression implementation provider or extension provider. Implementations are instantiated via ServiceLoader.
    Since:
    1.0.0
    Author:
    Christian Beikov
    • Method Detail

      • getSerializationTargetType

        Class<T> getSerializationTargetType()
        Returns the serialization target type class.
        Returns:
        the serialization target type class
      • getSerializationFormat

        default String getSerializationFormat()
        Returns the supported serialization format.
        Returns:
        the supported serialization format
      • createSerializer

        ExpressionSerializer<T> createSerializer​(ExpressionService expressionService)
        Returns a new serializer for the given expression service.
        Parameters:
        expressionService - The expression service the serializer should be based on
        Returns:
        a new serializer for the given domain model