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