Merge "one.x.troubleshooting is undefined while updating node name"
[controller.git] / opendaylight / northbound / topology / src / main / java / org / opendaylight / controller / topology / northbound / TopologyNorthboundRSApplication.java
1
2 /*
3  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
4  *
5  * This program and the accompanying materials are made available under the
6  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
7  * and is available at http://www.eclipse.org/legal/epl-v10.html
8  */
9
10 package org.opendaylight.controller.topology.northbound;
11
12 import java.util.HashSet;
13 import java.util.Set;
14 import javax.ws.rs.core.Application;
15
16 import org.codehaus.jackson.jaxrs.JacksonJaxbJsonProvider;
17
18 /**
19  * Instance of javax.ws.rs.core.Application used to return the classes
20  * that will be instantiated for JAXRS processing, this is necessary
21  * because the package scanning in jersey doesn't yet work in OSGi
22  * environment.
23  *
24  */
25 public class TopologyNorthboundRSApplication extends Application {
26     @Override
27     public Set<Class<?>> getClasses() {
28         Set<Class<?>> classes = new HashSet<Class<?>>();
29         classes.add(TopologyNorthboundJAXRS.class);
30         classes.add(JacksonJaxbJsonProvider.class);
31         return classes;
32     }
33 }