
com.github.kzwang.osem.jackson.JacksonElasticSearchOsemModule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elasticsearch-osem Show documentation
Show all versions of elasticsearch-osem Show documentation
Object/Search Engine Mapping for ElasticSearch
The newest version!
package com.github.kzwang.osem.jackson;
import com.fasterxml.jackson.core.Version;
import com.fasterxml.jackson.core.util.VersionUtil;
import com.fasterxml.jackson.databind.Module;
/**
* Jackson module used to serialize/deserialize object
*/
public class JacksonElasticSearchOsemModule extends Module {
@Override
public String getModuleName() {
return "jackson-datatype-elasticsearch-osem";
}
@Override
public Version version() {
return VersionUtil.versionFor(JacksonElasticSearchOsemModule.class);
}
@Override
public void setupModule(SetupContext context) {
context.appendAnnotationIntrospector(new ElasticSearchOsemAnnotationIntrospector());
context.addBeanSerializerModifier(new OsemBeanSerializerModifier());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy