Class BootstrapApp

java.lang.Object
lu.kbra.modelizer_next.bootstrap.config.BootstrapApp

public final class BootstrapApp extends Object
Constants and JSON mapper setup for the bootstrap module.
  • Field Details

    • MAPPER

      public static final com.fasterxml.jackson.databind.ObjectMapper MAPPER
    • APP_DIR_PROPERTY

      public static final String APP_DIR_PROPERTY
      See Also:
    • ENABLE_UPDATE_PROPERTY

      public static final String ENABLE_UPDATE_PROPERTY
    • ENABLE_UPDATE

      public static boolean ENABLE_UPDATE
    • APP_FOLDER_NAME

      public static final String APP_FOLDER_NAME
      See Also:
    • FORCE_JAR_NAME_PROPERTY

      public static final String FORCE_JAR_NAME_PROPERTY
    • FORCE_JAR_NAME

      public static String FORCE_JAR_NAME
    • FORCE_BOOTSTRAP_UPDATE_PROPERTY

      public static final String FORCE_BOOTSTRAP_UPDATE_PROPERTY
    • FORCE_BOOTSTRAP_UPDATE

      public static boolean FORCE_BOOTSTRAP_UPDATE
    • JSON

      public static com.fasterxml.jackson.databind.JsonNode JSON
    • NAME

      public static String NAME
    • VERSION

      public static String VERSION
    • REPOSITORY_URL

      public static String REPOSITORY_URL
    • RELEASES_URL

      public static String RELEASES_URL
    • UPDATES_MANIFEST_URL

      public static String UPDATES_MANIFEST_URL
    • DISTRIBUTOR

      public static String DISTRIBUTOR
    • RELEASES_MANIFEST_URL

      public static String RELEASES_MANIFEST_URL
    • BOOTSTRAP_CONFIG

      public static BootstrapConfig BOOTSTRAP_CONFIG
  • Method Details

    • ensureDirectories

      public static void ensureDirectories() throws IOException
      Ensures that the directories exists or is up to date during bootstrap/update processing.
      Throws:
      IOException - if the operation cannot be completed
    • getApplicationsDirectory

      public static File getApplicationsDirectory()
      Returns the applications directory.
      Returns:
      the applications directory
    • getBootstrapConfigFile

      public static File getBootstrapConfigFile()
      Returns the bootstrap config file.
      Returns:
      the bootstrap config file
    • getHomeDirectory

      public static File getHomeDirectory()
      Returns the home directory during bootstrap/update processing.
      Returns:
      the home directory
    • getTempDirectory

      public static File getTempDirectory()
      Returns the temp directory during bootstrap/update processing.
      Returns:
      the temp directory
    • init

      public static void init() throws IOException
      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:
      true if first launch is enabled or applies; otherwise false
    • loadConfiguration

      public static BootstrapConfiguration loadConfiguration()
      Loads the configuration during bootstrap/update processing.
      Returns:
      the load configuration result
    • saveConfiguration

      public static void saveConfiguration(BootstrapConfiguration configuration)
      Saves the configuration during bootstrap/update processing.
      Parameters:
      configuration - configuration value used by the operation