27bf9c21aa583546c16c379995cc56356abc1ca8
[controller.git] / opendaylight / md-sal / sal-dom-api / src / main / java / org / opendaylight / controller / sal / core / api / BrokerService.java
1 /*
2  * Copyright (c) 2013 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 package org.opendaylight.controller.sal.core.api;
9
10 /**
11  * Session-specific instance of the broker functionality.
12  *
13  * <p>
14  * BrokerService is marker interface for infrastructure services provided by the
15  * SAL. These services are session-specific, each {@link Provider} and
16  * {@link Consumer} usually has own instance of the service with it's own
17  * context.
18  *
19  * <p>
20  * The consumer's (or provider's) instance of specific service could be obtained
21  * by invoking {@link org.opendaylight.controller.sal.core.api.Broker.ConsumerSession#getService(Class)}
22  * method on session assigned to the consumer.
23  *
24  * <p>
25  * {@link BrokerService} and {@link Provider} may seem similar, but provider
26  * provides YANG model-based functionality and {@link BrokerService} exposes the
27  * necessary supporting functionality to implement specific functionality of
28  * YANG and to reuse it in the development of {@link Consumer}s and
29  * {@link Provider}s.
30  *
31  * @deprecated Use blueprint instead for code wiring.
32  */
33 @Deprecated
34 public interface BrokerService {
35
36 }