Class MigrationsDevConsoleRecorder

java.lang.Object
ac.simons.neo4j.migrations.quarkus.runtime.MigrationsDevConsoleRecorder

public class MigrationsDevConsoleRecorder extends Object
Triggered during development mode for contributing to the dev console.
Author:
Michael J. Simons
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.vertx.core.Handler<io.vertx.ext.web.RoutingContext>
    recordHandler(io.quarkus.runtime.RuntimeValue<ac.simons.neo4j.migrations.core.Migrations> migrationsRv)
    Creates the handler for executing migration commands.
    Supplier<ac.simons.neo4j.migrations.core.Migrations>
    recordMigrationsSupplier(io.quarkus.runtime.RuntimeValue<ac.simons.neo4j.migrations.core.Migrations> migrationsRv)
    Used to expose the migrations runtime value to the dev console

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MigrationsDevConsoleRecorder

      public MigrationsDevConsoleRecorder()
  • Method Details

    • recordMigrationsSupplier

      public Supplier<ac.simons.neo4j.migrations.core.Migrations> recordMigrationsSupplier(io.quarkus.runtime.RuntimeValue<ac.simons.neo4j.migrations.core.Migrations> migrationsRv)
      Used to expose the migrations runtime value to the dev console
      Parameters:
      migrationsRv - The runtime value containing the migrations
      Returns:
      A supplier of a runtime object
    • recordHandler

      public io.vertx.core.Handler<io.vertx.ext.web.RoutingContext> recordHandler(io.quarkus.runtime.RuntimeValue<ac.simons.neo4j.migrations.core.Migrations> migrationsRv)
      Creates the handler for executing migration commands.
      Parameters:
      migrationsRv - The runtime value containing the migrations
      Returns:
      The handler