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 javax.annotation.Nonnull;
11 import org.opendaylight.controller.md.sal.dom.api.DOMNotificationListener;
12 import org.opendaylight.controller.md.sal.dom.api.DOMNotificationListenerRegistration;
13 import org.opendaylight.yangtools.concepts.AbstractListenerRegistration;
16 * Utility base class for {@link DOMNotificationListenerRegistration}
19 public abstract class AbstractDOMNotificationListenerRegistration extends AbstractListenerRegistration<DOMNotificationListener> implements DOMNotificationListenerRegistration {
21 * Default constructor. Subclasses need to invoke it from their
24 * @param listener {@link DOMNotificationListener} instance which is
25 * being held by this registration. May not be null.
27 protected AbstractDOMNotificationListenerRegistration(final @Nonnull DOMNotificationListener listener) {