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:
- 1.7.0
- Author:
- Michael J. Simons
-
Field Summary
Fields inherited from interface ac.simons.neo4j.migrations.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getOrder()
handle
(ResourceContext ctx) Handles the resource of the given context and produces one or more new migrations.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ac.simons.neo4j.migrations.core.ResourceBasedMigrationProvider
supportsArbitraryResourceNames
-
Constructor Details
-
CypherResourceBasedMigrationProvider
public CypherResourceBasedMigrationProvider()Save to call, but discouraged.
-
-
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 one or more new migrations.- Specified by:
handle
in interfaceResourceBasedMigrationProvider
- Parameters:
ctx
- The context containing the resource and other information- Returns:
- The migrations contained in the resource
-
getOrder
public int getOrder()
-