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