2 * Copyright (c) 2013 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
8 package org.opendaylight.controller.sal.binding.api;
10 import org.opendaylight.controller.sal.binding.api.BindingAwareBroker.ConsumerContext;
14 * Session-specific instance of the broker functionality.
17 * BindingAwareService is marker interface for infrastructure services provided
18 * by the SAL. These services are session-specific, each
19 * {@link BindingAwareConsumer} and {@link BindingAwareProvider} usually has own
20 * instance of the service with it's own context.
23 * The consumer's (or provider's) instance of specific service could be obtained
24 * by invoking {@link ConsumerContext#getSALService(Class)} method on session
25 * assigned to the consumer.
28 * {@link BindingAwareService} and {@link BindingAwareProvider} may seem
29 * similar, but provider provides YANG model-based functionality and
30 * {@link BindingAwareProvider} exposes the necessary supporting functionality
31 * to implement specific functionality of YANG and to reuse it in the
32 * development of {@link BindingAwareConsumer}s and {@link BindingAwareProvider}
38 public interface BindingAwareService {