diff options
Diffstat (limited to 'infra/impl')
-rw-r--r-- | infra/impl/pom.xml | 6 | ||||
-rw-r--r-- | infra/impl/src/main/java/io/fd/honeycomb/impl/EmptyDomMountService.java | 13 |
2 files changed, 13 insertions, 6 deletions
diff --git a/infra/impl/pom.xml b/infra/impl/pom.xml index 6c2354252..937e707c6 100644 --- a/infra/impl/pom.xml +++ b/infra/impl/pom.xml @@ -54,6 +54,12 @@ <groupId>org.opendaylight.mdsal.model</groupId> <artifactId>ietf-topology</artifactId> </dependency> + <!--Required by FakeBindingAwareBroker -> BundleContext--> + <dependency> + <groupId>org.osgi</groupId> + <artifactId>org.osgi.core</artifactId> + <version>${osgi-core.version}</version> + </dependency> <dependency> <groupId>junit</groupId> diff --git a/infra/impl/src/main/java/io/fd/honeycomb/impl/EmptyDomMountService.java b/infra/impl/src/main/java/io/fd/honeycomb/impl/EmptyDomMountService.java index c42045f11..74001dce3 100644 --- a/infra/impl/src/main/java/io/fd/honeycomb/impl/EmptyDomMountService.java +++ b/infra/impl/src/main/java/io/fd/honeycomb/impl/EmptyDomMountService.java @@ -17,9 +17,10 @@ package io.fd.honeycomb.impl; import com.google.common.base.Optional; +import javax.annotation.Nonnull; import org.opendaylight.controller.md.sal.dom.api.DOMMountPoint; import org.opendaylight.controller.md.sal.dom.api.DOMMountPointService; -import org.opendaylight.controller.sal.core.api.mount.MountProvisionListener; +import org.opendaylight.mdsal.dom.api.DOMMountPointListener; import org.opendaylight.yangtools.concepts.ListenerRegistration; import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier; @@ -39,17 +40,17 @@ public class EmptyDomMountService implements DOMMountPointService { } @Override - public ListenerRegistration<MountProvisionListener> registerProvisionListener( - final MountProvisionListener mountProvisionListener) { - return new ListenerRegistration<MountProvisionListener>() { + public ListenerRegistration<DOMMountPointListener> registerProvisionListener(final DOMMountPointListener listener) { + return new ListenerRegistration<DOMMountPointListener>() { @Override public void close() { // Noop } + @Nonnull @Override - public MountProvisionListener getInstance() { - return mountProvisionListener; + public DOMMountPointListener getInstance() { + return listener; } }; } |