Class BootstrapApp
java.lang.Object
lu.kbra.modelizer_next.bootstrap.config.BootstrapApp
Constants and JSON mapper setup for the bootstrap module.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic BootstrapConfigstatic Stringstatic booleanstatic final Stringstatic booleanstatic final Stringstatic Stringstatic final Stringstatic com.fasterxml.jackson.databind.JsonNodestatic final com.fasterxml.jackson.databind.ObjectMapperstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic String -
Method Summary
Modifier and TypeMethodDescriptionstatic voidEnsures that the directories exists or is up to date during bootstrap/update processing.static FileReturns the applications directory.static FileReturns the bootstrap config file.static FileReturns the home directory during bootstrap/update processing.static FileReturns the temp directory during bootstrap/update processing.static voidinit()Initializes shared state required before the object is used during bootstrap/update processing.static booleanChecks whether first launch is enabled or applies.static BootstrapConfigurationLoads the configuration during bootstrap/update processing.static voidsaveConfiguration(BootstrapConfiguration configuration) Saves the configuration during bootstrap/update processing.
-
Field Details
-
MAPPER
public static final com.fasterxml.jackson.databind.ObjectMapper MAPPER -
APP_DIR_PROPERTY
- See Also:
-
ENABLE_UPDATE_PROPERTY
-
ENABLE_UPDATE
public static boolean ENABLE_UPDATE -
APP_FOLDER_NAME
- See Also:
-
FORCE_JAR_NAME_PROPERTY
-
FORCE_JAR_NAME
-
FORCE_BOOTSTRAP_UPDATE_PROPERTY
-
FORCE_BOOTSTRAP_UPDATE
public static boolean FORCE_BOOTSTRAP_UPDATE -
JSON
public static com.fasterxml.jackson.databind.JsonNode JSON -
NAME
-
VERSION
-
REPOSITORY_URL
-
RELEASES_URL
-
UPDATES_MANIFEST_URL
-
DISTRIBUTOR
-
RELEASES_MANIFEST_URL
-
BOOTSTRAP_CONFIG
-
-
Method Details
-
ensureDirectories
Ensures that the directories exists or is up to date during bootstrap/update processing.- Throws:
IOException- if the operation cannot be completed
-
getApplicationsDirectory
Returns the applications directory.- Returns:
- the applications directory
-
getBootstrapConfigFile
Returns the bootstrap config file.- Returns:
- the bootstrap config file
-
getHomeDirectory
Returns the home directory during bootstrap/update processing.- Returns:
- the home directory
-
getTempDirectory
Returns the temp directory during bootstrap/update processing.- Returns:
- the temp directory
-
init
Initializes shared state required before the object is used during bootstrap/update processing.- Throws:
IOException- if the operation cannot be completed
-
isFirstLaunch
public static boolean isFirstLaunch()Checks whether first launch is enabled or applies.- Returns:
trueif first launch is enabled or applies; otherwisefalse
-
loadConfiguration
Loads the configuration during bootstrap/update processing.- Returns:
- the load configuration result
-
saveConfiguration
Saves the configuration during bootstrap/update processing.- Parameters:
configuration- configuration value used by the operation
-