2 * Copyright (C) 2014 Red Hat, Inc.
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
10 package org.opendaylight.controller.config.yang.config.ovssfc_provider.impl;
12 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
13 import org.opendaylight.ovsdb.ovssfc.OvsSfcProvider;
15 public class OvsSfcProviderModule extends org.opendaylight.controller.config.yang.config.ovssfc_provider.impl.AbstractOvsSfcProviderModule {
16 public OvsSfcProviderModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
17 super(identifier, dependencyResolver);
20 public OvsSfcProviderModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver, org.opendaylight.controller.config.yang.config.ovssfc_provider.impl.OvsSfcProviderModule oldModule, java.lang.AutoCloseable oldInstance) {
21 super(identifier, dependencyResolver, oldModule, oldInstance);
25 public void customValidation() {
26 // add custom validation form module attributes here.
30 public java.lang.AutoCloseable createInstance() {
31 DataBroker dataBroker = getDataBrokerDependency();
32 final OvsSfcProvider ovsSfcProvider = new OvsSfcProvider(dataBroker);
34 final class AutoCloseableSfc implements AutoCloseable {
37 public void close() throws Exception {
38 ovsSfcProvider.close();
42 AutoCloseable ret = new AutoCloseableSfc();