d0d68218c04635bc6835bdca9f5bb84a33a4f38c
[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 import org.opendaylight.controller.sal.core.api.model.SchemaService;
7
8 public class BindingAsyncDataBrokerImplModule extends
9         org.opendaylight.controller.config.yang.md.sal.binding.impl.AbstractBindingAsyncDataBrokerImplModule {
10
11     public BindingAsyncDataBrokerImplModule(final org.opendaylight.controller.config.api.ModuleIdentifier identifier,
12             final org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
13         super(identifier, dependencyResolver);
14     }
15
16     public BindingAsyncDataBrokerImplModule(
17             final org.opendaylight.controller.config.api.ModuleIdentifier identifier,
18             final org.opendaylight.controller.config.api.DependencyResolver dependencyResolver,
19             final org.opendaylight.controller.config.yang.md.sal.binding.impl.BindingAsyncDataBrokerImplModule oldModule,
20             final java.lang.AutoCloseable oldInstance) {
21         super(identifier, dependencyResolver, oldModule, oldInstance);
22     }
23
24     @Override
25     public void customValidation() {
26         // add custom validation form module attributes here.
27     }
28
29     @Override
30     public java.lang.AutoCloseable createInstance() {
31         final BindingToNormalizedNodeCodec mappingService = getBindingMappingServiceDependency();
32         final DOMDataBroker domDataBroker = getDomAsyncBrokerDependency();
33         final SchemaService schemaService = getSchemaServiceDependency();
34         return new ForwardedBindingDataBroker(domDataBroker, mappingService, schemaService);
35     }
36
37 }

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