Class BootstrapUtils

java.lang.Object
io.quarkus.bootstrap.util.BootstrapUtils

public class BootstrapUtils extends Object
  • Constructor Details

    • BootstrapUtils

      public BootstrapUtils()
  • Method Details

    • splitByWhitespace

      public static String[] splitByWhitespace(String s)
    • parseDependencyCondition

      public static ArtifactKey[] parseDependencyCondition(String s)
    • exportModel

      @Deprecated(forRemoval=true) public static void exportModel(ApplicationModel model, boolean test) throws AppModelResolverException, IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      for removal since 3.31.0 in favor of ApplicationModelSerializer methods
      Throws:
      AppModelResolverException
      IOException
    • serializeAppModel

      @Deprecated(forRemoval=true) public static Path serializeAppModel(ApplicationModel model, boolean test) throws AppModelResolverException, IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      for removal since 3.31.0 in favor of ApplicationModelSerializer methods
      Throws:
      AppModelResolverException
      IOException
    • serializeAppModel

      @Deprecated(forRemoval=true) public static void serializeAppModel(ApplicationModel model, Path serializedModel) throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      for removal since 3.31.0 in favor of ApplicationModelSerializer methods
      Throws:
      IOException
    • serializeQuarkusModel

      @Deprecated(forRemoval=true) public static Path serializeQuarkusModel(ApplicationModel model) throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      for removal since 3.31.0 in favor of ApplicationModelSerializer methods
      Throws:
      IOException
    • deserializeQuarkusModel

      @Deprecated(forRemoval=true) public static ApplicationModel deserializeQuarkusModel(Path modelPath) throws AppModelResolverException
      Deprecated, for removal: This API element is subject to removal in a future version.
      for removal since 3.31.0 in favor of ApplicationModelSerializer methods
      Throws:
      AppModelResolverException
    • resolveSerializedAppModelPath

      public static Path resolveSerializedAppModelPath(Path projectBuildDir)
      Returns a location where a serialized ApplicationModel would be found for dev mode.
      Parameters:
      projectBuildDir - project build directory
      Returns:
      file of a serialized application model for dev mode
    • getSerializedTestAppModelPath

      public static Path getSerializedTestAppModelPath(Path projectBuildDir)
      Returns a location where a serialized ApplicationModel would be found for test mode.
      Parameters:
      projectBuildDir - project build directory
      Returns:
      file of a serialized application model for test mode
    • writeAppModelWithWorkspaceId

      @Deprecated(forRemoval=true) public static void writeAppModelWithWorkspaceId(ApplicationModel appModel, int workspaceId, Path file) throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 3.31.0 in favor of ApplicationModelSerializer methods

      Serializes an ApplicationModel along with the workspace ID for which it was resolved. The serialization format will be different from the one used by resolveSerializedAppModelPath(Path) and getSerializedTestAppModelPath(Path).

      Parameters:
      appModel - application model to serialize
      workspaceId - workspace ID
      file - target file
      Throws:
      IOException - in case of an IO failure
    • readAppModelWithWorkspaceId

      @Deprecated(forRemoval=true) public static ApplicationModel readAppModelWithWorkspaceId(Path file, int workspaceId) throws ClassNotFoundException, IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 3.31.0 in favor of ApplicationModelSerializer methods

      Deserializes an ApplicationModel from a file.

      The implementation will check whether the serialization format of the file matches the expected one. If it does not, the method will return null even if the file exists.

      The implementation will compare the deserialized workspace ID to the argument workspaceId and if they don't match the method will return null.

      Once the ApplicationModel was deserialized, the dependency paths will be checked for existence. If a dependency path does not exist, the method will throw an exception.

      Parameters:
      file - serialized application model file
      workspaceId - expected workspace ID
      Returns:
      deserialized application model
      Throws:
      ClassNotFoundException - in case a required class could not be loaded
      IOException - in case of an IO failure
    • toTextFlags

      public static String toTextFlags(int flags)
      Generates a comma-separated list of flag names for an integer representation of the flags.
      Parameters:
      flags - flags as an integer value
      Returns:
      comma-separated list of the flag names