Add ListenerRegistry.clear() 67/88167/1
authorRobert Varga <robert.varga@pantheon.tech>
Sat, 29 Feb 2020 10:30:28 +0000 (11:30 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Sat, 29 Feb 2020 15:42:12 +0000 (16:42 +0100)
commit3ff7c30219041530941eceb69a7f1762ff9b982c
tree3230514179752e559b74dec57666906982c333e5
parent87d8a35442eed4284e3da9f7a18b0a0877cdcc74
Add ListenerRegistry.clear()

There are callers who mean to only clear the registry for which
they are accessing the public view. Provide a method to do that
and mark getRegistrations() as deprecated.

Change-Id: I73b18443c505e7c7cea7efec627cc87196793d46
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
common/util/src/main/java/org/opendaylight/yangtools/util/ListenerRegistry.java
common/util/src/test/java/org/opendaylight/yangtools/util/ListenerRegistryTest.java