2 * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.restconf.openapi.jaxrs;
10 import com.fasterxml.jackson.databind.ObjectMapper;
11 import javax.ws.rs.Consumes;
12 import javax.ws.rs.Produces;
13 import javax.ws.rs.core.MediaType;
14 import javax.ws.rs.ext.ContextResolver;
15 import javax.ws.rs.ext.Provider;
18 @Consumes(MediaType.APPLICATION_JSON)
19 @Produces(MediaType.APPLICATION_JSON)
20 public class JaxbContextResolver implements ContextResolver<ObjectMapper> {
23 public ObjectMapper getContext(final Class<?> klass) {
24 return null; // must return null so that JAX-RS can continue context search