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