09e790e3b2cfc8674b7e9664d0a2e2401abf8822
[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 Replaced by blueprint wiring
17  */
18 @Deprecated
19 public class BindingAsyncDataBrokerImplModule extends
20         org.opendaylight.controller.config.yang.md.sal.binding.impl.AbstractBindingAsyncDataBrokerImplModule {
21
22     public BindingAsyncDataBrokerImplModule(final org.opendaylight.controller.config.api.ModuleIdentifier identifier,
23             final org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
24         super(identifier, dependencyResolver);
25     }
26
27     public BindingAsyncDataBrokerImplModule(
28             final org.opendaylight.controller.config.api.ModuleIdentifier identifier,
29             final org.opendaylight.controller.config.api.DependencyResolver dependencyResolver,
30             final org.opendaylight.controller.config.yang.md.sal.binding.impl.BindingAsyncDataBrokerImplModule oldModule,
31             final java.lang.AutoCloseable oldInstance) {
32         super(identifier, dependencyResolver, oldModule, oldInstance);
33     }
34
35     @Override
36     public void customValidation() {
37         // add custom validation form module attributes here.
38     }
39
40     @Override
41     public java.lang.AutoCloseable createInstance() {
42         final BindingToNormalizedNodeCodec mappingService = getBindingMappingServiceDependency();
43         final DOMDataBroker domDataBroker = getDomAsyncBrokerDependency();
44         return new BindingDOMDataBrokerAdapter(domDataBroker, mappingService);
45     }
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.