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

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

Introduction

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

Prototype

Annotations JAXB

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

Click Source Link

Document

Standard JAXB annotations, used in a way that approximates expected definitions (since JAXB defines XML aspects, not all features map well to JSON handling)

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 }));
}