memento.mn.jdbc.MicroEventSerdeFactory.groovy Maven / Gradle / Ivy
package memento.mn.jdbc
import com.fasterxml.jackson.databind.ObjectMapper
import memento.EventSerdePort
import memento.impl.JacksonEventSerde
import memento.model.Mappings
import io.micronaut.context.annotation.Factory
import jakarta.inject.Singleton
@Factory
class MicroEventSerdeFactory {
@Singleton
EventSerdePort getJacksonSerde(
ObjectMapper objectMapper,
List mappings
) {
return new JacksonEventSerde(mappings, objectMapper)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy