2 * Copyright (c) 2023 PANTHEON.tech, s.r.o. and others. All rights reserved.
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
8 package org.opendaylight.mdsal.dom.broker;
10 import javax.inject.Inject;
11 import javax.inject.Singleton;
12 import org.eclipse.jdt.annotation.NonNull;
13 import org.opendaylight.mdsal.dom.api.DOMNotificationPublishService;
14 import org.opendaylight.mdsal.dom.spi.ForwardingDOMNotificationPublishService;
15 import org.osgi.service.component.annotations.Activate;
16 import org.osgi.service.component.annotations.Component;
17 import org.osgi.service.component.annotations.Reference;
20 @Component(service = DOMNotificationPublishService.class)
21 public final class RouterDOMPublishNotificationService extends ForwardingDOMNotificationPublishService {
22 private final @NonNull DOMNotificationPublishService delegate;
26 public RouterDOMPublishNotificationService(@Reference final DOMNotificationRouter router) {
27 delegate = router.notificationPublishService();
31 protected DOMNotificationPublishService delegate() {