Interface ResourceBasedMigrationProvider

All Superinterfaces:
Ordered
All Known Implementing Classes:
CypherResourceBasedMigrationProvider, DefaultCatalogBasedMigrationProvider

public interface ResourceBasedMigrationProvider extends Ordered
An interface defining a provider with a set of supported extension and a mapper from resource to Migration. The interface is ordered so that we can pick the accordingly when one provider maps to the same extension.
Since:
TBA
Author:
Michael J. Simons
Soundtrack
Fatoni - Andorra
  • Method Details

    • unique

      Returns:
      a collection containing unique providers (only one for each extension)
    • getExtension

      String getExtension()
      Returns:
      the file extension this resource based migration provider deals with
    • handle

      Handles the resource of the given context and produces a new migration.
      Parameters:
      ctx - The context containing the resource and other information
      Returns:
      The migration based on the resource.