BUG 6396 neutron-mapper project migration to blueprint
[groupbasedpolicy.git] / neutron-mapper / src / main / java / org / opendaylight / controller / config / yang / config / neutron_mapper / impl / NeutronMapperInstance.java
1 /*
2  * Copyright (c) 2016 Cisco Systems, Inc. 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.neutron_mapper.impl;
10
11 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
12 import org.opendaylight.groupbasedpolicy.neutron.mapper.NeutronMapper;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.base_endpoint.rev160427.BaseEndpointService;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.endpoint.rev140421.EndpointService;
15
16 public class NeutronMapperInstance implements AutoCloseable{
17
18     private NeutronMapper mapper;
19
20     public NeutronMapperInstance (DataBroker dataBroker, EndpointService epService,
21             BaseEndpointService baseEndpointService) {
22         mapper = new NeutronMapper(dataBroker, epService, baseEndpointService);
23     }
24     @Override
25     public void close() throws Exception {
26         mapper.close();
27     }
28 }