Replace exception.printStacktrace with write to log.
[controller.git] / opendaylight / northbound / topology / src / main / java / org / opendaylight / controller / topology / northbound / TopologyNorthboundRSApplication.java
1
2 /*
3  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
4  *
5  * This program and the accompanying materials are made available under the
6  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
7  * and is available at http://www.eclipse.org/legal/epl-v10.html
8  */
9
10 package org.opendaylight.controller.topology.northbound;
11
12 import java.util.HashSet;
13 import java.util.Set;
14 import javax.ws.rs.core.Application;
15
16 /**
17  * Instance of javax.ws.rs.core.Application used to return the classes
18  * that will be instantiated for JAXRS processing, this is necessary
19  * because the package scanning in jersey doesn't yet work in OSGi
20  * environment.
21  *
22  */
23 public class TopologyNorthboundRSApplication extends Application {
24     @Override
25     public Set<Class<?>> getClasses() {
26         Set<Class<?>> classes = new HashSet<Class<?>>();
27         classes.add(TopologyNorthboundJAXRS.class);
28         return classes;
29     }
30 }