Class MarkdownBasedMigrationProvider

java.lang.Object
ac.simons.neo4j.migrations.core.AbstractResourceBasedMigrationProvider
ac.simons.neo4j.migrations.formats.markdown.MarkdownBasedMigrationProvider
All Implemented Interfaces:
Ordered, ResourceBasedMigrationProvider

public final class MarkdownBasedMigrationProvider extends AbstractResourceBasedMigrationProvider
Implementation of a ResourceBasedMigrationProvider that deals with Markdown files under the extension of .md.
Author:
Gerrit Meier
  • Constructor Details

    • MarkdownBasedMigrationProvider

      public MarkdownBasedMigrationProvider()
      Creates a new instance of this provider. It should not be necessary to call this directly, it will be done by the service loader.
  • Method Details

    • handle

      public Collection<Migration> handle(ResourceContext ctx)
      Description copied from interface: ResourceBasedMigrationProvider
      Handles the resource of the given context and produces one or more new migrations.
      Parameters:
      ctx - The context containing the resource and other information
      Returns:
      The migrations contained in the resource