Consolidate test/debug flatl2 network manager into a single bundle.
[affinity.git] / flatl2 / northbound / src / main / java / org / opendaylight / affinity / flatl2 / northbound / FlatL2NorthboundRSApplication.java
diff --git a/flatl2/northbound/src/main/java/org/opendaylight/affinity/flatl2/northbound/FlatL2NorthboundRSApplication.java b/flatl2/northbound/src/main/java/org/opendaylight/affinity/flatl2/northbound/FlatL2NorthboundRSApplication.java
new file mode 100644 (file)
index 0000000..fd6f925
--- /dev/null
@@ -0,0 +1,29 @@
+/*
+ * Copyright (c) 2013 Plexxi, Inc. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+
+package org.opendaylight.affinity.flatl2.northbound;
+
+import java.util.HashSet;
+import java.util.Set;
+import javax.ws.rs.core.Application;
+
+/**
+ * Instance of javax.ws.rs.core.Application used to return the classes
+ * that will be instantiated for JAXRS processing, this is necessary
+ * because the package scanning in jersey doesn't yet work in OSGi
+ * environment.
+ *
+ */
+public class FlatL2NorthboundRSApplication extends Application {
+    @Override
+    public Set<Class<?>> getClasses() {
+        Set<Class<?>> classes = new HashSet<Class<?>>();
+        classes.add(FlatL2Northbound.class);
+        return classes;
+    }
+}