Class StaticJavaBasedMigrationDiscoverer

java.lang.Object
ac.simons.neo4j.migrations.quarkus.runtime.StaticJavaBasedMigrationDiscoverer
All Implemented Interfaces:
ac.simons.neo4j.migrations.core.Discoverer<ac.simons.neo4j.migrations.core.JavaBasedMigration>

public class StaticJavaBasedMigrationDiscoverer extends Object implements ac.simons.neo4j.migrations.core.Discoverer<ac.simons.neo4j.migrations.core.JavaBasedMigration>
Since:
1.3.0
Author:
Michael J. Simons
Soundtrack
Antilopen Gang - Anarchie und Alltag
  • Constructor Details

    • StaticJavaBasedMigrationDiscoverer

      public StaticJavaBasedMigrationDiscoverer()
  • Method Details

    • of

      public static StaticJavaBasedMigrationDiscoverer of(Collection<Class<? extends ac.simons.neo4j.migrations.core.JavaBasedMigration>> migrationClasses)
      Creates a new discoverer from a fixed set of already found and loaded classes.
      Parameters:
      migrationClasses - The set of classes found elsewhere
      Returns:
      a correctly initialized discoverer
    • getMigrationClasses

      public Set<Class<? extends ac.simons.neo4j.migrations.core.JavaBasedMigration>> getMigrationClasses()
      Returns:
      the list of discovered classes.
    • setMigrationClasses

      public void setMigrationClasses(Set<Class<? extends ac.simons.neo4j.migrations.core.JavaBasedMigration>> migrationClasses)
      This method may not be used outside Quarkus internal code.
      Parameters:
      migrationClasses - a new list of discovered classes
    • discover

      public Collection<ac.simons.neo4j.migrations.core.JavaBasedMigration> discover(ac.simons.neo4j.migrations.core.MigrationContext context)
      Specified by:
      discover in interface ac.simons.neo4j.migrations.core.Discoverer<ac.simons.neo4j.migrations.core.JavaBasedMigration>