Package com.blazebit.expression.spi
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 viaServiceLoader
.- Since:
- 1.0.0
- Author:
- Christian Beikov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ExpressionSerializer<T>
createSerializer(ExpressionService expressionService)
Returns a new serializer for the given expression service.default String
getSerializationFormat()
Returns the supported serialization format.Class<T>
getSerializationTargetType()
Returns the serialization target type class.
-
-
-
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
-
-