f20b1aab027020dbe3c94c731f5f7eb66729c231
[groupbasedpolicy.git] / renderers / faas / src / main / java / org / opendaylight / controller / config / yang / config / faas_provider / impl / FaasProviderInstance.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.faas_provider.impl;
10
11 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
12 import org.opendaylight.groupbasedpolicy.api.EpRendererAugmentationRegistry;
13 import org.opendaylight.groupbasedpolicy.renderer.faas.FaasRenderer;
14
15 public class FaasProviderInstance implements AutoCloseable{
16
17     private FaasRenderer renderer;
18
19     public FaasProviderInstance (DataBroker dataBroker, EpRendererAugmentationRegistry epRegistry) {
20         renderer = new FaasRenderer(dataBroker, epRegistry);
21     }
22
23     @Override
24     public void close() throws Exception {
25         renderer.close();
26     }
27
28 }