Package space.arim.dazzleconf
Interface ConfigureListener
- All Superinterfaces:
UpdateListener
Listener that lets the implementor know about various configuration events
-
Method Summary
Modifier and TypeMethodDescriptionvoidmigratedFrom(@NonNull Migration<?, ?> migration) Notifies that a migration was successful.voidmigrationSkip(@NonNull Migration<?, ?> migration, @NonNull List<@NonNull ErrorContext> errorContexts) Notifies that a migration was attempted, but it failed (for any reason).voidSignals 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
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 migrationerrorContexts- the failure contexts, may be empty
-