Package ac.simons.neo4j.migrations.core
Interface ResourceBasedMigrationProvider
- All Superinterfaces:
Ordered
- All Known Implementing Classes:
CypherResourceBasedMigrationProvider
,DefaultCatalogBasedMigrationProvider
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
-
Field Summary
Fields inherited from interface ac.simons.neo4j.migrations.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Method Summary
Modifier and TypeMethodDescriptionhandle
(ResourceContext ctx) Handles the resource of the given context and produces a new migration.unique()
-
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.
-