org.optaplanner.quarkus.jackson.OptaPlannerObjectMapperCustomizer Maven / Gradle / Ivy
package org.optaplanner.quarkus.jackson;
import jakarta.inject.Singleton;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.quarkus.jackson.ObjectMapperCustomizer;
/**
* OptaPlanner doesn't use Jackson, but it does have optional Jackson support for serializing the score etc.
*/
@Singleton
public class OptaPlannerObjectMapperCustomizer implements ObjectMapperCustomizer {
@Override
public void customize(ObjectMapper objectMapper) {
objectMapper.findAndRegisterModules(); // Loads OptaPlanner Jackson module via ServiceLoader.
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy