Search in sources :

Example 1 with ResourceFieldInformationProvider

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));
}
Also used : DefaultResourceFieldInformationProvider(io.crnk.core.engine.internal.information.resource.DefaultResourceFieldInformationProvider) ResourceFieldInformationProvider(io.crnk.core.engine.information.resource.ResourceFieldInformationProvider) DefaultResourceInformationProvider(io.crnk.core.engine.internal.information.resource.DefaultResourceInformationProvider) DefaultResourceFieldInformationProvider(io.crnk.core.engine.internal.information.resource.DefaultResourceFieldInformationProvider)

Aggregations

ResourceFieldInformationProvider (io.crnk.core.engine.information.resource.ResourceFieldInformationProvider)1 DefaultResourceFieldInformationProvider (io.crnk.core.engine.internal.information.resource.DefaultResourceFieldInformationProvider)1 DefaultResourceInformationProvider (io.crnk.core.engine.internal.information.resource.DefaultResourceInformationProvider)1