0c17c84ec4d6e5f74f2bca3bb281bc97cd091c28
[controller.git] / opendaylight / samples / northbound / loadbalancer / src / main / java / org / opendaylight / controller / samples / loadbalancer / northbound / LoadBalancerNorthboundRSApplication.java
1 /*
2  * Copyright IBM Corporation, 2013.  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.samples.loadbalancer.northbound;
10
11 import java.util.HashSet;
12 import java.util.Set;
13 import javax.ws.rs.core.Application;
14
15 /**
16  * This class is an instance of javax.ws.rs.core.Application and is used to return the classes
17  * that will be instantiated for JAXRS processing. This is necessary
18  * because package scanning in jersey doesn't yet work in OSGi environment.
19  *
20  */
21 public class LoadBalancerNorthboundRSApplication extends Application {
22     @Override
23     public Set<Class<?>> getClasses() {
24         Set<Class<?>> classes = new HashSet<Class<?>>();
25         classes.add(LoadBalancerNorthbound.class);
26         return classes;
27     }
28 }