# Package org.apache.sis.storage.event

package org.apache.sis.storage.event
Provides interfaces and classes for dealing with different types of events fired by resources. The different types of events are specified by the `StoreEvent` subclasses. For example if a warning occurred while reading data from a file, then the `DataStore` implementation should fire a `WarningEvent`.

Events may occur in the following situations:

- When a warning occurred.
- When the data store content changed (e.g. new feature instance added or removed).
- When the data store structure changed (e.g. a column is added in tabular data).
- Any other change at implementation choice.

Users can declare their interest to a specific kind of event.

Since:
  1.1

Defined in the `sis-storage` module

- Related Packages
  Package
  Description
  org.apache.sis.storage
  Data store base types for retrieving and saving geospatial data in various storage formats.
- Class
  Description
  StoreEvent
  Parent class of events happening in a data store resource.
  StoreListener<T extends StoreEvent>
  An object which listens for events (typically changes or warnings) occurring in a resource or one of its children.
  StoreListeners
  Holds a list of `StoreListener` instances and provides convenience methods for sending events.
  WarningEvent
  Describes non-fatal errors that occurred in a resource or a data store.