Add blueprint wiring for mdsal-netconf-monitoring
[netconf.git] / netconf / mdsal-netconf-yang-library / src / main / java / org / opendaylight / controller / config / yang / netconf / mdsal / yang / library / NetconfMdsalYanglibModule.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.netconf.mdsal.yang.library;
10
11 import org.opendaylight.netconf.mdsal.yang.library.SchemaServiceToMdsalWriter;
12
13 public class NetconfMdsalYanglibModule extends org.opendaylight.controller.config.yang.netconf.mdsal.yang.library.AbstractNetconfMdsalYanglibModule {
14     public NetconfMdsalYanglibModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
15         super(identifier, dependencyResolver);
16     }
17
18     public NetconfMdsalYanglibModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver, org.opendaylight.controller.config.yang.netconf.mdsal.yang.library.NetconfMdsalYanglibModule oldModule, java.lang.AutoCloseable oldInstance) {
19         super(identifier, dependencyResolver, oldModule, oldInstance);
20     }
21
22     @Override
23     public void customValidation() {
24         // add custom validation form module attributes here.
25     }
26
27     @Override
28     public java.lang.AutoCloseable createInstance() {
29         // TODO Implement also yang-library-change notfication
30         final SchemaServiceToMdsalWriter schemaServiceToMdsalWriter =
31                 new SchemaServiceToMdsalWriter(getRootSchemaServiceDependency());
32
33         getBindingAwareBrokerDependency().registerProvider(schemaServiceToMdsalWriter);
34
35         return schemaServiceToMdsalWriter;
36     }
37
38 }