Package ac.simons.neo4j.migrations.core
Class DefaultCatalogBasedMigrationProvider
java.lang.Object
ac.simons.neo4j.migrations.core.DefaultCatalogBasedMigrationProvider
- All Implemented Interfaces:
Ordered
,ResourceBasedMigrationProvider
public final class DefaultCatalogBasedMigrationProvider
extends Object
implements ResourceBasedMigrationProvider
Default handler for xml 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
-
DefaultCatalogBasedMigrationProvider
public DefaultCatalogBasedMigrationProvider()Save to call, but discouraged.
-
-
Method Details
-
getOrder
public int getOrder() -
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
-