UI support for multiple host per port
[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 import org.codehaus.jackson.jaxrs.JacksonJaxbJsonProvider;
16
17 /**
18  * This class is an instance of javax.ws.rs.core.Application and is used to return the classes
19  * that will be instantiated for JAXRS processing. This is necessary
20  * because package scanning in jersey doesn't yet work in OSGi environment.
21  *
22  */
23 public class LoadBalancerNorthboundRSApplication extends Application {
24     @Override
25     public Set<Class<?>> getClasses() {
26         Set<Class<?>> classes = new HashSet<Class<?>>();
27         classes.add(LoadBalancerNorthbound.class);
28         classes.add(JacksonJaxbJsonProvider.class);
29         return classes;
30     }
31 }