Replace LOGGER by LOG
[controller.git] / opendaylight / md-sal / messagebus-util / src / main / java / org / opendaylight / controller / messagebus / app / util / Providers.java
1 /*
2  * Copyright (c) 2015 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.messagebus.app.util;
10
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;
17
18 public class Providers {
19     private static final Logger LOG = LoggerFactory.getLogger(Providers.class);
20
21     public static class BindingAware implements BindingAwareProvider, AutoCloseable {
22
23
24         @Override
25         public void onSessionInitiated(final BindingAwareBroker.ProviderContext session) {
26             LOG.info("BindingAwareBroker.ProviderContext initialized");
27         }
28
29         @Override
30         public void close() throws Exception {}
31     }
32
33     public static class BindingIndependent extends AbstractProvider implements AutoCloseable {
34
35         @Override
36         public void onSessionInitiated(final Broker.ProviderSession session) {
37             LOG.info("Broker.ProviderSession initialized");
38         }
39
40         @Override
41         public void close() throws Exception {}
42     }
43
44 }