+ /**
+ * Return the list of current listeners. Any caller wishing to use this method
+ * has to make sure the collection remains unchanged while it's executing. This
+ * means the caller has to synchronize externally both the registration and
+ * unregistration process.
+ *
+ * @return the list of current listeners
+ */
+ @SuppressWarnings({ "rawtypes", "unchecked" })
+ public Collection<org.opendaylight.controller.md.sal.dom.store.impl.DataChangeListenerRegistration<?>> getListeners() {
+ return (Collection) listeners;