Bug 1029: Remove dead code: samples/clustersession
[controller.git] / opendaylight / adsal / northbound / containermanager / src / main / java / org / opendaylight / controller / containermanager / northbound / ContainerManagerNorthboundRSApplication.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.containermanager.northbound;
11
12 import java.util.HashSet;
13 import java.util.Set;
14
15 import javax.ws.rs.core.Application;
16
17 import org.opendaylight.controller.northbound.commons.query.QueryContextProvider;
18
19 import com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider;
20
21 /**
22  * Instance of javax.ws.rs.core.Application used to return the classes
23  * that will be instantiated for JAXRS processing, this is necessary
24  * because the package scanning in jersey doesn't yet work in OSGi
25  * environment.
26  *
27  */
28 public class ContainerManagerNorthboundRSApplication extends Application {
29     @Override
30     public Set<Class<?>> getClasses() {
31         Set<Class<?>> classes = new HashSet<Class<?>>();
32         classes.add(ContainerManagerNorthbound.class);
33         classes.add(JacksonJaxbJsonProvider.class);
34         classes.add(QueryContextProvider.class);
35         return classes;
36     }
37 }