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.core.api;
10 import java.util.Collection;
11 import org.opendaylight.controller.sal.core.api.Broker.ProviderSession;
14 * Defines the component of controller and supplies additional metadata. A
15 * component of the controller or application supplies a concrete implementation
19 * A user-implemented component (application) which facilitates the SAL and SAL
20 * services to access infrastructure services and to provide functionality to
21 * {@link Consumer}s and other providers.
23 * @deprecated Use blueprint instead for code wiring.
26 public interface Provider {
29 * Callback signaling initialization of the provider session to the SAL.
32 * The provider <b>MUST use the session</b> for all communication with SAL
33 * or retrieving SAL infrastructure services.
36 * This method is invoked by {@link Broker#registerConsumer(Consumer)}
39 * Unique session between provider and SAL.
41 void onSessionInitiated(ProviderSession session);
46 * @deprecated - No longer used or needed. Suggested implementation until removed:
48 * public Collection<ProviderFunctionality> getProviderFunctionality() {
49 * return Collections.emptySet();
54 Collection<ProviderFunctionality> getProviderFunctionality();
59 * @deprecated - no longer used or needed
62 interface ProviderFunctionality {