2 * Copyright (c) 2014 Cisco Systems, Inc. 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.controller.md.sal.dom.spi;
10 import com.google.common.collect.ForwardingObject;
11 import java.util.Collection;
12 import org.opendaylight.controller.md.sal.dom.api.DOMNotificationListener;
13 import org.opendaylight.controller.md.sal.dom.api.DOMNotificationListenerRegistration;
14 import org.opendaylight.controller.md.sal.dom.api.DOMNotificationService;
15 import org.opendaylight.yangtools.yang.model.api.SchemaPath;
18 * Utility implementation of a {@link DOMNotificationService} which forwards all requests
19 * to a delegate instance.
21 public abstract class ForwardingDOMNotificationService extends ForwardingObject implements DOMNotificationService {
23 protected abstract DOMNotificationService delegate();
26 public DOMNotificationListenerRegistration registerNotificationListener(final DOMNotificationListener listener,
27 final Collection<SchemaPath> types) {
28 return delegate().registerNotificationListener(listener, types);
32 public DOMNotificationListenerRegistration registerNotificationListener(final DOMNotificationListener listener,
33 final SchemaPath... types) {
34 return delegate().registerNotificationListener(listener, types);