Added factory for objectmapper.

This commit is contained in:
Michael Spalti
2021-03-25 15:47:15 -07:00
parent 8dea0807b7
commit c746a9b43b

View File

@@ -0,0 +1,26 @@
/**
* The contents of this file are subject to the license and copyright
* detailed in the LICENSE and NOTICE files at the root of the source
* tree and available online at
*
* http://www.dspace.org/license/
*/
package org.dspace.app.rest.iiif.model;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.module.SimpleModule;
import de.digitalcollections.iiif.model.jackson.IiifModule;
import de.digitalcollections.iiif.model.jackson.IiifObjectMapper;
public class ObjectMapperFactory {
private ObjectMapperFactory() {}
public static ObjectMapper getIiifObjectMapper() {
return new IiifObjectMapper();
}
public static SimpleModule getIiifModule() {
return new IiifModule();
}
}