BUG 6396 ne-location-provider migration to blueprint
[groupbasedpolicy.git] / location-providers / ne-location-provider / src / main / java / org / opendaylight / controller / config / yang / config / ne / location / provider / cfg / NeLocationProviderInstance.java
diff --git a/location-providers/ne-location-provider/src/main/java/org/opendaylight/controller/config/yang/config/ne/location/provider/cfg/NeLocationProviderInstance.java b/location-providers/ne-location-provider/src/main/java/org/opendaylight/controller/config/yang/config/ne/location/provider/cfg/NeLocationProviderInstance.java
new file mode 100644 (file)
index 0000000..f894a91
--- /dev/null
@@ -0,0 +1,26 @@
+/*
+ * Copyright (c) 2016 Cisco Systems, 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.controller.config.yang.config.ne.location.provider.cfg;
+
+import org.opendaylight.controller.md.sal.binding.api.DataBroker;
+import org.opendaylight.groupbasedpolicy.ne.location.provider.NeLocationProvider;
+
+public class NeLocationProviderInstance implements AutoCloseable {
+
+    private NeLocationProvider provider;
+
+    public NeLocationProviderInstance (DataBroker dataBroker) {
+        provider = new NeLocationProvider(dataBroker);
+    }
+
+    @Override
+    public void close() throws Exception {
+        provider.close();
+    }
+}