Merge "Bug 2517: Catch RuntimeExceptions thrown from the DCL in DataChangeListener"
[controller.git] / opendaylight / md-sal / sal-dom-spi / src / main / java / org / opendaylight / controller / md / sal / dom / spi / AbstractDOMNotificationListenerRegistration.java
1 /*
2  * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.controller.md.sal.dom.spi;
9
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;
14
15 /**
16  * Utility base class for {@link DOMNotificationListenerRegistration}
17  * implementations.
18  */
19 public abstract class AbstractDOMNotificationListenerRegistration extends AbstractListenerRegistration<DOMNotificationListener> implements DOMNotificationListenerRegistration {
20     /**
21      * Default constructor. Subclasses need to invoke it from their
22      * constructor(s).
23      *
24      * @param listener {@link DOMNotificationListener} instance which is
25      *                 being held by this registration. May not be null.
26      */
27     protected AbstractDOMNotificationListenerRegistration(final @Nonnull DOMNotificationListener listener) {
28         super(listener);
29     }
30 }