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
1 /*
2  * Copyright (c) 2016 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
9 package org.opendaylight.controller.config.yang.config.ne.location.provider.cfg;
10
11 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
12 import org.opendaylight.groupbasedpolicy.ne.location.provider.NeLocationProvider;
13
14 public class NeLocationProviderInstance implements AutoCloseable {
15
16     private NeLocationProvider provider;
17
18     public NeLocationProviderInstance (DataBroker dataBroker) {
19         provider = new NeLocationProvider(dataBroker);
20     }
21
22     @Override
23     public void close() throws Exception {
24         provider.close();
25     }
26 }