2 * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
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
9 package org.opendaylight.controller.config.yang.messagebus.app.impl;
11 import org.opendaylight.controller.sal.binding.api.BindingAwareBroker;
12 import org.opendaylight.controller.sal.binding.api.BindingAwareProvider;
13 import org.opendaylight.controller.sal.core.api.AbstractProvider;
14 import org.opendaylight.controller.sal.core.api.Broker;
15 import org.slf4j.Logger;
16 import org.slf4j.LoggerFactory;
18 public class Providers {
19 private static final Logger LOGGER = LoggerFactory.getLogger(Providers.class);
21 public static class BindingAware implements BindingAwareProvider, AutoCloseable {
25 public void onSessionInitiated(final BindingAwareBroker.ProviderContext session) {
26 LOGGER.info("BindingAwareBroker.ProviderContext initialized");
30 public void close() throws Exception {}
33 public static class BindingIndependent extends AbstractProvider implements AutoCloseable {
36 public void onSessionInitiated(final Broker.ProviderSession session) {
37 LOGGER.info("Broker.ProviderSession initialized");
41 public void close() throws Exception {}