sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Desruisseaux (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SIS-421) Retrofit WarningListener in a more generic EventListener
Date Mon, 04 Jun 2018 17:12:00 GMT
Martin Desruisseaux created SIS-421:
---------------------------------------

             Summary: Retrofit WarningListener in a more generic EventListener
                 Key: SIS-421
                 URL: https://issues.apache.org/jira/browse/SIS-421
             Project: Spatial Information Systems
          Issue Type: Improvement
          Components: Storage, Utilities
    Affects Versions: 0.8
            Reporter: Martin Desruisseaux
            Assignee: Martin Desruisseaux
             Fix For: 1.0


{{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 is {{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}}s, with the exception
of {{org.apache.sis.metadata.sql}} package. So even if {{WarningEvent}} become storage-specific,
it may not be a big issue.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message