Binding2 runtime - API #4
[mdsal.git] / binding2 / mdsal-binding2-api / src / main / java / org / opendaylight / mdsal / binding / javav2 / api / MountPointListener.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.api;
10
11 import com.google.common.annotations.Beta;
12 import java.util.EventListener;
13 import org.opendaylight.mdsal.binding.javav2.spec.base.InstanceIdentifier;
14
15 /**
16  * Interface implemented by classes interested in receiving notifications about
17  * mount point changes.
18  */
19 @Beta
20 public interface MountPointListener extends EventListener {
21
22     /**
23      * Invoked whenever mount point is created at given path represented by instance identifier.
24      * @param path given path
25      */
26     void onMountPointCreated(InstanceIdentifier<?> path);
27
28     /**
29      * Invoked whenever mount point is removed from given path represented by instance identifier.
30      * @param path given path
31      */
32     void onMountPointRemoved(InstanceIdentifier<?> path);
33 }