e03cac656268228dde2c2f52ba82027e60df32b2
[controller.git] / opendaylight / northbound / subnets / src / main / java / org / opendaylight / controller / subnets / northbound / SubnetsNorthboundRSApplication.java
1 /*
2  * Copyright (c) 2013 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.controller.subnets.northbound;
9
10 import java.util.HashSet;
11 import java.util.Set;
12
13 import javax.ws.rs.core.Application;
14
15 import org.codehaus.jackson.jaxrs.JacksonJaxbJsonProvider;
16
17 /**
18  * Instance of javax.ws.rs.core.Application used to return the classes
19  * that will be instantiated for JAXRS processing, this is necessary
20  * because the package scanning in jersey doesn't yet work in OSGi
21  * environment.
22  *
23  */
24 public class SubnetsNorthboundRSApplication extends Application {
25     @Override
26     public Set<Class<?>> getClasses() {
27         Set<Class<?>> classes = new HashSet<Class<?>>();
28         classes.add(SubnetsNorthbound.class);
29         classes.add(JacksonJaxbJsonProvider.class);
30         return classes;
31     }
32 }