Working northbound rest api calls for affinity objects.
[affinity.git] / analytics / northbound / src / main / java / org / opendaylight / affinity / analytics / northbound / AnalyticsNorthboundRSApplication.java
1 /*
2  * Copyright (c) 2013 Plexxi, 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.affinity.analytics.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 AnalyticsNorthboundRSApplication extends Application {
23     @Override
24     public Set<Class<?>> getClasses() {
25         Set<Class<?>> classes = new HashSet<Class<?>>();
26         classes.add(AnalyticsNorthbound.class);
27         return classes;
28     }
29 }