2 * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
\r
4 * This program and the accompanying materials are made available under the
\r
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
\r
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
\r
9 package org.opendaylight.controller.config.yang.config.vpp_provider.impl;
\r
11 import com.google.common.base.Preconditions;
\r
12 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
\r
13 import org.slf4j.Logger;
\r
14 import org.slf4j.LoggerFactory;
\r
16 public class VppRenderer implements AutoCloseable {
\r
17 private static final Logger LOG = LoggerFactory.getLogger(VppRenderer.class);
\r
19 private DataBroker dataBroker;
\r
21 public VppRenderer(DataBroker dataBroker) {
\r
22 Preconditions.checkNotNull(dataBroker);
\r
24 this.dataBroker = dataBroker;
\r
26 LOG.info("VPP Renderer has Started");
\r
30 public void close() throws Exception {
\r
31 this.dataBroker = null;
\r