Module io.avaje.classpath.scanner
Package io.avaje.classpath.scanner.core
Class AndriodContextHolder
java.lang.Object
io.avaje.classpath.scanner.core.AndriodContextHolder
Holds an Android context. The context must be set for Flyway to be able to scan assets and classes for migrations.
You can set this within an activity using ContextHolder.setContext(this);
-
Method Summary
Modifier and TypeMethodDescriptionstatic android.content.Contextstatic voidsetContext(android.content.Context context)
-
Method Details
-
getContext
public static android.content.Context getContext()- Returns:
- The Android context to use to be able to scan assets and classes for migrations.
-
setContext
public static void setContext(android.content.Context context) - Parameters:
context- The Android context to use to be able to scan assets and classes for migrations.
-