Deprecate ListenerRegistry for removal
[yangtools.git] / common / util / src / main / java / org / opendaylight / yangtools / util / ListenerRegistry.java
index 100acc9eb904112199f64f080db16c8e97b2d899..ea6a870ffaf4d9926578ae972df3e7ac544f244b 100644 (file)
@@ -24,7 +24,9 @@ import org.opendaylight.yangtools.concepts.Mutable;
  * A registry of EventListeners, maintaining a set of registrations. This class is thread-safe.
  *
  * @param <T> Type of listeners this registry handles
+ * @deprecated Use {@link ObjectRegistry} instead
  */
+@Deprecated(since = "12.0.0", forRemoval = true)
 public final class ListenerRegistry<T extends EventListener> implements Mutable {
     private final Set<RegistrationImpl<? extends T>> listeners = ConcurrentHashMap.newKeySet();
     private final String name;