DataStore in SIS 1.0-SNAPSHOT (June 2018) have two kind of listeners:
- The org.apache.sis.util.logging package defines a WarningListener interface, together with a WarningListeners helper class.
- The org.apache.sis.storage.event package defines a ChangeListener interface, together with ChangeEvent class. The intent is to have different ChangeEvent subtypes for e.g. structural changes, content changes, etc.
We should consider renaming the later as StoreListener and StoreEvent, and define a WarningEvent class. The old WarningListener could be replaced by this new mechanism. The intent is to avoid having two listener mechanism in parallel in data stores.
It seems that WarningListener are currently used only in DataStore, with the exception of org.apache.sis.metadata.sql package. So even if WarningEvent become storage-specific, it may not be a big issue.