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 * Defines the component of controller and supplies additional metadata. A
15 * component of the controller or application supplies a concrete implementation
18 * A user-implemented component (application) which faciliates the SAL and SAL
19 * services to access infrastructure services or providers' functionality.
24 public interface BindingAwareConsumer {
27 * Callback signaling initialization of the consumer session to the SAL.
29 * The consumer MUST use the session for all communication with SAL or
30 * retrieving SAL infrastructure services.
32 * This method is invoked by
33 * {@link BindingAwareBroker#registerConsumer(BindingAwareConsumer)}
36 * Unique session between consumer and SAL.
38 void onSessionInitialized(ConsumerContext session);