Adapt API to OpenApiObject removal
[netconf.git] / restconf / restconf-openapi / src / main / java / org / opendaylight / restconf / openapi / jaxrs / JaxbContextResolver.java
1 /*
2  * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.restconf.openapi.jaxrs;
9
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;
16
17 @Provider
18 @Consumes(MediaType.APPLICATION_JSON)
19 @Produces(MediaType.APPLICATION_JSON)
20 public class JaxbContextResolver implements ContextResolver<ObjectMapper> {
21
22     @Override
23     public ObjectMapper getContext(final Class<?> klass) {
24         return null; // must return null so that JAX-RS can continue context search
25     }
26 }