Class StaticJavaBasedMigrationDiscoverer
java.lang.Object
ac.simons.neo4j.migrations.quarkus.runtime.StaticJavaBasedMigrationDiscoverer
- All Implemented Interfaces:
Discoverer<JavaBasedMigration>
public class StaticJavaBasedMigrationDiscoverer
extends Object
implements Discoverer<JavaBasedMigration>
- Since:
- 1.3.0
- Author:
- Michael J. Simons
- Soundtrack
- Antilopen Gang - Anarchie und Alltag
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondiscover
(MigrationContext context) Discover migrations within the given context.Set<Class<? extends JavaBasedMigration>>
of
(Collection<Class<? extends JavaBasedMigration>> migrationClasses) Creates a new discoverer from a fixed set of already found and loaded classes.void
setMigrationClasses
(Set<Class<? extends JavaBasedMigration>> migrationClasses) This method may not be used outside Quarkus internal code.
-
Constructor Details
-
StaticJavaBasedMigrationDiscoverer
public StaticJavaBasedMigrationDiscoverer()
-
-
Method Details
-
of
public static StaticJavaBasedMigrationDiscoverer of(Collection<Class<? extends 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
- Returns:
- the list of discovered classes.
-
setMigrationClasses
This method may not be used outside Quarkus internal code.- Parameters:
migrationClasses
- a new list of discovered classes
-
discover
Description copied from interface:Discoverer
Discover migrations within the given context.- Specified by:
discover
in interfaceDiscoverer<JavaBasedMigration>
- Parameters:
context
- The context of the ongoing migration.- Returns:
- A collection of migrations.
-