Bug 2364: Migrated Binding MD-SAL to not use composites nodes
[controller.git] / opendaylight / md-sal / sal-binding-broker / src / main / java / org / opendaylight / controller / config / yang / md / sal / binding / impl / BindingAsyncDataBrokerImplModule.java
1 package org.opendaylight.controller.config.yang.md.sal.binding.impl;
2
3 import org.opendaylight.controller.md.sal.binding.impl.BindingToNormalizedNodeCodec;
4 import org.opendaylight.controller.md.sal.binding.impl.ForwardedBindingDataBroker;
5 import org.opendaylight.controller.md.sal.dom.api.DOMDataBroker;
6
7 public class BindingAsyncDataBrokerImplModule extends
8         org.opendaylight.controller.config.yang.md.sal.binding.impl.AbstractBindingAsyncDataBrokerImplModule {
9
10     public BindingAsyncDataBrokerImplModule(final org.opendaylight.controller.config.api.ModuleIdentifier identifier,
11             final org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
12         super(identifier, dependencyResolver);
13     }
14
15     public BindingAsyncDataBrokerImplModule(
16             final org.opendaylight.controller.config.api.ModuleIdentifier identifier,
17             final org.opendaylight.controller.config.api.DependencyResolver dependencyResolver,
18             final org.opendaylight.controller.config.yang.md.sal.binding.impl.BindingAsyncDataBrokerImplModule oldModule,
19             final java.lang.AutoCloseable oldInstance) {
20         super(identifier, dependencyResolver, oldModule, oldInstance);
21     }
22
23     @Override
24     public void customValidation() {
25         // add custom validation form module attributes here.
26     }
27
28     @Override
29     public java.lang.AutoCloseable createInstance() {
30         final BindingToNormalizedNodeCodec mappingService = getBindingMappingServiceDependency();
31         final DOMDataBroker domDataBroker = getDomAsyncBrokerDependency();
32         return new ForwardedBindingDataBroker(domDataBroker, mappingService);
33     }
34
35 }

©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.