use of io.crnk.core.engine.information.resource.ResourceFieldInformationProvider in project crnk-framework by crnk-project.
the class JacksonModule method setupModule.
@Override
public void setupModule(ModuleContext context) {
objectMapper.registerModule(createJacksonModule(serializeLinksAsObjects));
DefaultResourceFieldInformationProvider defaultFieldProvider = new DefaultResourceFieldInformationProvider();
ResourceFieldInformationProvider jacksonFieldProvider = new JacksonResourceFieldInformationProvider();
// TODO move somewhere else and make use of a SerializerExtension
context.addResourceInformationBuilder(new DefaultResourceInformationProvider(context.getPropertiesProvider(), pagingBehaviors, defaultFieldProvider, jacksonFieldProvider));
}
Aggregations