c1af9058eb640e1e5ce440c932028e59ca5c1794
[groupbasedpolicy.git] / groupbasedpolicy-ise-adapter / src / main / java / org / opendaylight / controller / config / yang / config / groupbasedpolicy / gbp_ise_adapter / GbpIseAdapterProviderInstance.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.groupbasedpolicy.gbp_ise_adapter;
10
11 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
12 import org.opendaylight.controller.sal.binding.api.BindingAwareBroker;
13 import org.opendaylight.groupbasedpolicy.gbp_ise_adapter.impl.GbpIseAdapterProvider;
14
15 public class GbpIseAdapterProviderInstance implements AutoCloseable{
16
17     private GbpIseAdapterProvider iseAdapterProvider;
18
19     public GbpIseAdapterProviderInstance(DataBroker dataBroker, BindingAwareBroker broker) {
20         iseAdapterProvider = new GbpIseAdapterProvider(dataBroker, broker);
21     }
22
23     @Override
24     public void close() throws Exception {
25         iseAdapterProvider.close();
26     }
27
28 }