Add ListenerRegistry.clear() 72/88172/2
authorRobert Varga <robert.varga@pantheon.tech>
Sat, 29 Feb 2020 10:30:28 +0000 (11:30 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 2 Mar 2020 11:31:10 +0000 (12:31 +0100)
commit1cf06f3e0280674773a2450f493d28b99c922c7f
tree6e06841e12a207f771d421a1c695db389e817ce4
parent1116fc0db1de5bdd21439c1f6c2e5a3eeb0028d8
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