move trace impl-blueprint.xml DI into TraceBindingBrokerWiring
[controller.git] / opendaylight / md-sal / mdsal-trace / binding-impl / src / main / java / org / opendaylight / controller / md / sal / trace / binding / impl / TracingBindingBrokerWiring.java
1 /*
2  * Copyright (c) 2018 Red Hat, 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.md.sal.trace.binding.impl;
9
10 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
11 import org.opendaylight.controller.md.sal.binding.spi.AdapterFactory;
12 import org.opendaylight.controller.md.sal.trace.api.TracingDOMDataBroker;
13
14 /**
15  * Programmatic "wiring" for dependency injection.
16  *
17  * <p>See org.opendaylight.controller.md.sal.binding.impl.BindingBrokerWiring.
18  *
19  * @author Michael Vorburger.ch
20  */
21 public class TracingBindingBrokerWiring {
22
23     private final DataBroker dataBroker;
24     private final DataBroker pingPongDataBroker;
25
26     public TracingBindingBrokerWiring(TracingDOMDataBroker tracingDOMDataBroker,
27             TracingDOMDataBroker tracingPingPongDOMDataBroker, AdapterFactory adapterFactory) {
28
29         dataBroker = adapterFactory.createDataBroker(tracingDOMDataBroker);
30         pingPongDataBroker = adapterFactory.createDataBroker(tracingPingPongDOMDataBroker);
31     }
32
33     public DataBroker getTracingDataBroker() {
34         return dataBroker;
35     }
36
37     public DataBroker getTracingPingPongDataBroker() {
38         return pingPongDataBroker;
39     }
40
41 }

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.