Interface Storage


public interface Storage
Interface which represents a storage which provides implementations for Presets and Brushes.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the brushes storage
    default void
    migrate(Storage storage)
    Migrate the storage into this storage.
    Get the preset storage
    default void
    Reload the data for that storage from disk
    default void
    Attempts to save the storage.
    default void
    Called when the plugin shuts down and the storages get unregistered.
  • Method Details

    • presets

      Presets presets()
      Get the preset storage
      Returns:
      preset storage
    • brushes

      Brushes brushes()
      Get the brushes storage
      Returns:
      brushes storages
    • migrate

      default void migrate(Storage storage)
      Migrate the storage into this storage. This will override entries if they already exist whith the same name. This will not remove already existing entries.
      Parameters:
      storage - storage with entries to add.
    • save

      default void save()
      Attempts to save the storage.

      Only required for file based storages.

    • shutdown

      default void shutdown()
      Called when the plugin shuts down and the storages get unregistered.
    • reload

      default void reload()
      Reload the data for that storage from disk