Class ContextHolder
- java.lang.Object
-
- io.avaje.classpath.scanner.andriod.ContextHolder
-
public class ContextHolder extends Object
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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static android.content.ContextgetContext()static voidsetContext(android.content.Context context)
-
-
-
Method Detail
-
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.
-
-