Add change notification functionality to yang-store.
[controller.git] / opendaylight / config / yang-store-api / src / main / java / org / opendaylight / controller / config / yang / store / spi / YangStoreListener.java
1 /*
2  * Copyright (c) 2013 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.config.yang.store.spi;
9
10 import java.net.URL;
11 import java.util.Collection;
12
13 /**
14  * Implementation of this interface gets notified when bundle containing yang files in META-INF/yang has been
15  * added or removed. One notification is sent per one bundle.
16  */
17 public interface YangStoreListener {
18
19     void onAddedYangURL(Collection<URL> url);
20
21     void onRemovedYangURL(Collection<URL> url);
22
23 }