92b8d0ca8c6dd7acec97462ee5a1bf308707b71c
[controller.git] / opendaylight / md-sal / sal-binding-config / src / main / java / org / opendaylight / controller / config / yang / md / sal / binding / impl / BindingAsyncDataBrokerImplModule.java
1 /*
2  * Copyright (c) 2015 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
9 package org.opendaylight.controller.config.yang.md.sal.binding.impl;
10
11 import org.opendaylight.controller.md.sal.binding.impl.BindingDOMDataBrokerAdapter;
12 import org.opendaylight.controller.md.sal.binding.impl.BindingToNormalizedNodeCodec;
13 import org.opendaylight.controller.md.sal.dom.api.DOMDataBroker;
14
15 /**
16  * Deprecated.
17  *
18  * @deprecated Replaced by blueprint wiring
19  */
20 @Deprecated
21 public class BindingAsyncDataBrokerImplModule extends AbstractBindingAsyncDataBrokerImplModule {
22
23     public BindingAsyncDataBrokerImplModule(final org.opendaylight.controller.config.api.ModuleIdentifier identifier,
24             final org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
25         super(identifier, dependencyResolver);
26     }
27
28     public BindingAsyncDataBrokerImplModule(
29             final org.opendaylight.controller.config.api.ModuleIdentifier identifier,
30             final org.opendaylight.controller.config.api.DependencyResolver dependencyResolver,
31             final BindingAsyncDataBrokerImplModule oldModule,
32             final java.lang.AutoCloseable oldInstance) {
33         super(identifier, dependencyResolver, oldModule, oldInstance);
34     }
35
36     @Override
37     public void customValidation() {
38         // add custom validation form module attributes here.
39     }
40
41     @Override
42     public java.lang.AutoCloseable createInstance() {
43         final BindingToNormalizedNodeCodec mappingService = getBindingMappingServiceDependency();
44         final DOMDataBroker domDataBroker = getDomAsyncBrokerDependency();
45         return new BindingDOMDataBrokerAdapter(domDataBroker, mappingService);
46     }
47 }

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