Example usage for com.fasterxml.jackson.jaxrs.json Annotations JACKSON

List of usage examples for com.fasterxml.jackson.jaxrs.json Annotations JACKSON

Introduction

In this page you can find the example usage for com.fasterxml.jackson.jaxrs.json Annotations JACKSON.

Prototype

Annotations JACKSON

To view the source code for com.fasterxml.jackson.jaxrs.json Annotations JACKSON.

Click Source Link

Document

Standard Jackson annotations, defined in Jackson core and databind packages

Usage

From source file:com.ning.jetty.core.modules.ServerModule.java

protected void installJackson() {
    final ObjectMapper mapper = getJacksonProvider().get();

    bind(ObjectMapper.class).toInstance(mapper);
    bind(JacksonJsonProvider.class).toInstance(
            new JacksonJsonProvider(mapper, new Annotations[] { Annotations.JACKSON, Annotations.JAXB }));
}