Introduction of XSQL
[controller.git] / opendaylight / md-sal / sal-dom-xsql / src / main / java / org / opendaylight / yang / gen / v1 / http / netconfcentral / org / ns / xsql / rev140626 / XSQLModule.java
1 package org.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.xsql.rev140626;
2
3 import org.opendaylight.controller.md.sal.dom.xsql.XSQLAdapter;
4 import org.opendaylight.xsql.XSQLProvider;
5
6 public class XSQLModule extends org.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.xsql.rev140626.AbstractXSQLModule {
7     public XSQLModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
8         super(identifier, dependencyResolver);
9     }
10
11     public XSQLModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver, org.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.xsql.rev140626.XSQLModule oldModule, java.lang.AutoCloseable oldInstance) {
12         super(identifier, dependencyResolver, oldModule, oldInstance);
13     }
14
15     @Override
16     public void customValidation() {
17         // add custom validation form module attributes here.
18     }
19
20     @Override
21     public java.lang.AutoCloseable createInstance() {
22         XSQLAdapter xsqlAdapter = XSQLAdapter.getInstance();
23         getSchemaServiceDependency().registerSchemaServiceListener(xsqlAdapter);
24         xsqlAdapter.setDataBroker(getAsyncDataBrokerDependency());
25         XSQLProvider p = new XSQLProvider();
26         p.buildXSQL(getDataBrokerDependency());
27         return p;
28     }
29
30 }

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