X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-dom-broker%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fdom%2Fbroker%2FBrokerConfigActivator.xtend;h=3baae04019954d3ec7a9469d395b8b2a105aec0e;hb=22074884bbdd216b17f47a0e5c6af871bd616abd;hp=da7cccb156d9ac1437474a01e8cc1260c8ee9bcf;hpb=c5aaa057429dbceb764a50c24b2f4d21f05e1fc3;p=controller.git diff --git a/opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/sal/dom/broker/BrokerConfigActivator.xtend b/opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/sal/dom/broker/BrokerConfigActivator.xtend index da7cccb156..3baae04019 100644 --- a/opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/sal/dom/broker/BrokerConfigActivator.xtend +++ b/opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/sal/dom/broker/BrokerConfigActivator.xtend @@ -14,20 +14,22 @@ import org.opendaylight.yangtools.yang.data.api.InstanceIdentifier import org.opendaylight.controller.sal.core.api.data.DataStore import org.opendaylight.controller.sal.dom.broker.impl.SchemaAwareDataStoreAdapter import org.opendaylight.controller.sal.core.api.model.SchemaServiceListener +import org.opendaylight.controller.sal.dom.broker.impl.SchemaAwareRpcBroker class BrokerConfigActivator implements AutoCloseable { private static val ROOT = InstanceIdentifier.builder().toInstance(); + + @Property + private var DataBrokerImpl dataService; private var ServiceRegistration schemaReg; private var ServiceRegistration dataReg; private var ServiceRegistration dataProviderReg; private var ServiceRegistration mountReg; private var ServiceRegistration mountProviderReg; - private var SchemaServiceImpl schemaService; - private var DataBrokerImpl dataService; private var MountPointManagerImpl mountService; SchemaAwareDataStoreAdapter wrappedStore @@ -36,13 +38,15 @@ class BrokerConfigActivator implements AutoCloseable { val emptyProperties = new Hashtable(); broker.setBundleContext(context); - + schemaService = new SchemaServiceImpl(); schemaService.setContext(context); schemaService.setParser(new YangParserImpl()); schemaService.start(); schemaReg = context.registerService(SchemaService, schemaService, emptyProperties); + broker.setRouter(new SchemaAwareRpcBroker("/",schemaService)); + dataService = new DataBrokerImpl(); dataService.setExecutor(broker.getExecutor());