Binding generator v2 - Notifications
[mdsal.git] / binding2 / mdsal-binding2-spec / src / main / java / org / opendaylight / mdsal / binding / javav2 / spec / runtime / NotificationListener.java
1 /*
2  * Copyright (c) 2017 Pantheon Technologies s.r.o. 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
9 package org.opendaylight.mdsal.binding.javav2.spec.runtime;
10
11 import com.google.common.annotations.Beta;
12 import java.util.EventListener;
13 import org.opendaylight.mdsal.binding.javav2.spec.base.Notification;
14
15 /**
16  * Marker interface for generated notification listener interfaces. This interface
17  * exists solely as support for generated code. Users should never implement this
18  * interface directly, but rather implement one of the sub-interfaces generated
19  * from a YANG model.
20  *
21  * <p>
22  * The subclasses of this interface have callbacks for events, which are derived
23  * from {@link Notification} class in form void
24  * on{NotificationType}(NotificationType notification).
25  *
26  * <p>
27  * E.g. if we have notification SessionUp the callback will have signature:
28  * <code>void onSessionUp(SessionUp notification)</code>
29  */
30 @Beta
31 public interface NotificationListener extends EventListener {
32 }