SimpleDataSourceFactory

A factory for creating DataSource instances from simplified configurations. Allows easy setup for tests and examples.

Properties

Link copied to clipboard
val defaultJackson2JsonHandler: JacksonJsonHandler
Link copied to clipboard
val defaultJackson2ObjectMapper: ObjectMapper

The default ObjectMapper used for serializing and deserializing JSON payloads. It is pre-configured with the JavaTime module and DataSource serialization extensions.

Functions

Link copied to clipboard
fun createDataSource(simpleConfig: SimpleDataSourceConfig, jsonHandler: JsonHandler<*> = defaultJackson2JsonHandler): DataSource

Creates a data source based on the given simple configuration.

Link copied to clipboard
fun createJackson2JsonHandler(objectMapper: ObjectMapper): JacksonJsonHandler