Package ac.simons.neo4j.migrations.core
Class CypherResourceBasedMigrationProvider
java.lang.Object
ac.simons.neo4j.migrations.core.CypherResourceBasedMigrationProvider
- All Implemented Interfaces:
Ordered
,ResourceBasedMigrationProvider
public final class CypherResourceBasedMigrationProvider
extends Object
implements ResourceBasedMigrationProvider
Default handler for cypher resources.
- Since:
- TBA
- Author:
- Michael J. Simons
-
Field Summary
Fields inherited from interface ac.simons.neo4j.migrations.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getOrder()
handle
(ResourceContext ctx) Handles the resource of the given context and produces a new migration.
-
Constructor Details
-
CypherResourceBasedMigrationProvider
public CypherResourceBasedMigrationProvider()
-
-
Method Details
-
getExtension
- Specified by:
getExtension
in interfaceResourceBasedMigrationProvider
- Returns:
- the file extension this resource based migration provider deals with
-
handle
Description copied from interface:ResourceBasedMigrationProvider
Handles the resource of the given context and produces a new migration.- Specified by:
handle
in interfaceResourceBasedMigrationProvider
- Parameters:
ctx
- The context containing the resource and other information- Returns:
- The migration based on the resource.
-
getOrder
public int getOrder()
-