All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ai.timefold.solver.quarkus.jackson.TimefoldObjectMapperCustomizer Maven / Gradle / Ivy

There is a newer version: 1.16.0
Show newest version
package ai.timefold.solver.quarkus.jackson;

import jakarta.inject.Singleton;

import com.fasterxml.jackson.databind.ObjectMapper;

import io.quarkus.jackson.ObjectMapperCustomizer;

/**
 * Timefold doesn't use Jackson, but it does have optional Jackson support for serializing the score etc.
 */
@Singleton
public class TimefoldObjectMapperCustomizer implements ObjectMapperCustomizer {

    @Override
    public void customize(ObjectMapper objectMapper) {
        objectMapper.findAndRegisterModules(); // Loads Timefold Jackson module via ServiceLoader.
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy