Add a REST APIs support for IOVIsor module
[groupbasedpolicy.git] / renderers / iovisor / src / main / java / org / opendaylight / groupbasedpolicy / renderer / iovisor / sbrest / IovisorRSApplication.java
1 /*
2  * Copyright (c) 2015 Inocybe Technologies 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.groupbasedpolicy.renderer.iovisor.sbrest;
10
11 import java.util.HashSet;
12 import java.util.Set;
13
14 import javax.ws.rs.core.Application;
15
16 /**
17  * This class is an instance of javax.ws.rs.core.Application and is used to
18  * return the classes that will be instantiated for JAXRS processing. This is
19  * necessary because package scanning in jersey doesn't yet work in OSGi
20  * environment.
21  *
22  */
23 public class IovisorRSApplication extends Application {
24
25     @Override
26     public Set<Class<?>> getClasses() {
27         Set<Class<?>> classes = new HashSet<Class<?>>();
28         classes.add(IovisorModuleService.class);
29         return classes;
30     }
31 }