<type>pom</type>
<scope>import</scope>
</dependency>
+ <dependency>
+ <groupId>org.opendaylight.yangtools</groupId>
+ <artifactId>yangtools-artifacts</artifactId>
+ <version>2.1.5</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
<dependency>
<groupId>org.opendaylight.controller</groupId>
<artifactId>mdsal-artifacts</artifactId>
<dependency>
<groupId>org.opendaylight.mdsal</groupId>
<artifactId>mdsal-artifacts</artifactId>
- <version>3.0.1</version>
+ <version>3.0.2</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<groupId>org.opendaylight.infrautils</groupId>
<artifactId>caches-standard-impl</artifactId>
</dependency>
+ <dependency>
+ <groupId>org.opendaylight.yangtools</groupId>
+ <artifactId>util</artifactId>
+ </dependency>
<!-- Logging related -->
<dependency>
/*
- * Copyright (c) 2017 Red Hat, Inc. and others. All rights reserved.
+ * Copyright (c) 2018 Red Hat, Inc. and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
import com.google.inject.AbstractModule;
import com.google.inject.Provides;
import javax.inject.Singleton;
+import org.opendaylight.controller.sal.core.compat.DOMDataBrokerAdapter;
+import org.opendaylight.controller.sal.core.compat.DOMNotificationServiceAdapter;
import org.opendaylight.mdsal.binding.dom.codec.api.BindingNormalizedNodeSerializer;
+import org.opendaylight.mdsal.dom.api.DOMDataBroker;
+import org.opendaylight.mdsal.dom.api.DOMMountPointService;
+import org.opendaylight.mdsal.dom.api.DOMNotificationService;
+import org.opendaylight.mdsal.dom.broker.DOMMountPointServiceImpl;
import org.opendaylight.mdsal.eos.binding.api.EntityOwnershipService;
import org.opendaylight.mdsal.eos.binding.dom.adapter.BindingDOMEntityOwnershipServiceAdapter;
import org.opendaylight.mdsal.eos.dom.api.DOMEntityOwnershipService;
import org.opendaylight.mdsal.eos.dom.simple.SimpleDOMEntityOwnershipService;
+@SuppressWarnings("deprecation") // sure, but that's the point of this class...
public class MdsalWiring extends AbstractModule {
@Override
bind(DOMEntityOwnershipService.class).to(SimpleDOMEntityOwnershipService.class);
}
+ @Provides
+ @Singleton DOMDataBroker getDOMDataBroker(org.opendaylight.controller.md.sal.dom.api.DOMDataBroker controllerDDB) {
+ return new DOMDataBrokerAdapter(controllerDDB);
+ }
+
+ @Provides
+ @Singleton DOMNotificationService getDOMNotificationService(
+ org.opendaylight.controller.md.sal.dom.api.DOMNotificationService controllerDNS) {
+ return new DOMNotificationServiceAdapter(controllerDNS);
+ }
+
+ @Provides
+ @Singleton DOMMountPointService getDOMMountPoint(
+ /* org.opendaylight.controller.md.sal.dom.api.DOMMountPointService controllerDMP */) {
+ // TODO doesn't the mdsal DOMMountPointServiceImpl need the controller DOMMountPointService ?!
+ return new DOMMountPointServiceImpl();
+ }
+
@Provides
@Singleton EntityOwnershipService getDOMEntityOwnershipService(
DOMEntityOwnershipService domService, BindingNormalizedNodeSerializer conversionCodec) {
import org.opendaylight.aaa.web.WebContextRegistration;
import org.opendaylight.aaa.web.WebServer;
import org.opendaylight.aaa.web.servlet.ServletSupport;
-import org.opendaylight.controller.md.sal.dom.api.DOMDataBroker;
-import org.opendaylight.controller.md.sal.dom.api.DOMMountPointService;
-import org.opendaylight.controller.md.sal.dom.api.DOMNotificationService;
-import org.opendaylight.controller.md.sal.dom.api.DOMRpcService;
+import org.opendaylight.mdsal.dom.api.DOMDataBroker;
+import org.opendaylight.mdsal.dom.api.DOMMountPointService;
+import org.opendaylight.mdsal.dom.api.DOMNotificationService;
+import org.opendaylight.mdsal.dom.api.DOMRpcService;
import org.opendaylight.mdsal.dom.api.DOMSchemaService;
import org.opendaylight.netconf.sal.restconf.impl.BrokerFacade;
import org.opendaylight.netconf.sal.restconf.impl.ControllerContext;