Package io.quarkus.flyway
Class FlywayCallbacksLocator
- java.lang.Object
-
- io.quarkus.flyway.FlywayCallbacksLocator
-
class FlywayCallbacksLocator extends Object
Logic to locate and process FlywayCallbackclasses. This class also helps to keep theFlywayProcessorclass as lean as possible to make it easier to maintain
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Collection<org.flywaydb.core.api.callback.Callback>>getCallbacks()Main logic to identify callbacks and return them to be processed by theFlywayProcessorstatic FlywayCallbacksLocatorwith(Collection<String> dataSourceNames, FlywayBuildTimeConfig flywayBuildConfig, CombinedIndexBuildItem combinedIndexBuildItem, BuildProducer<ReflectiveClassBuildItem> reflectiveClassProducer)
-
-
-
Method Detail
-
with
public static FlywayCallbacksLocator with(Collection<String> dataSourceNames, FlywayBuildTimeConfig flywayBuildConfig, CombinedIndexBuildItem combinedIndexBuildItem, BuildProducer<ReflectiveClassBuildItem> reflectiveClassProducer)
-
getCallbacks
public Map<String,Collection<org.flywaydb.core.api.callback.Callback>> getCallbacks() throws ClassNotFoundException, InvocationTargetException, InstantiationException, IllegalAccessException
Main logic to identify callbacks and return them to be processed by theFlywayProcessor- Returns:
- Map containing the callbacks for each datasource. The datasource name is the map key
- Throws:
ClassNotFoundException- if theCallbackclass cannot be located by the Quarkus class loaderInstantiationException- if theCallbackclass represents an abstract class.InvocationTargetException- if the underlying constructor throws an exception.IllegalAccessException- if theCallbackconstructor is enforcing Java language access control and the underlying constructor is inaccessible
-
-