Interface ConfigureListener

All Superinterfaces:
UpdateListener

public interface ConfigureListener extends UpdateListener
Listener that lets the implementor know about various configuration events
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    migratedFrom(@NonNull Migration<?,?> migration)
    Notifies that a migration was successful.
    void
    migrationSkip(@NonNull Migration<?,?> migration, @NonNull List<@NonNull ErrorContext> errorContexts)
    Notifies that a migration was attempted, but it failed (for any reason).
    void
    Signals that the configuration didn't exist, so the whole thing was freshly written from default values.

    Methods inherited from interface space.arim.dazzleconf.engine.UpdateListener

    notifyUpdate
  • Method Details

    • wroteDefaults

      void wroteDefaults()
      Signals that the configuration didn't exist, so the whole thing was freshly written from default values.
    • migratedFrom

      void migratedFrom(@NonNull Migration<?,?> migration)
      Notifies that a migration was successful. This is called after the migration has taken place.
      Parameters:
      migration - the migration
    • migrationSkip

      void migrationSkip(@NonNull Migration<?,?> migration, @NonNull List<@NonNull ErrorContext> errorContexts)
      Notifies that a migration was attempted, but it failed (for any reason).

      The error contexts relating to that failure are provided here. Note that this list may be empty if the migration produced an empty error list.

      Parameters:
      migration - the migration
      errorContexts - the failure contexts, may be empty