Class BootstrapUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ApplicationModeldeserializeQuarkusModel(Path modelPath) Deprecated, for removal: This API element is subject to removal in a future version.for removal since 3.31.0 in favor of ApplicationModelSerializer methodsstatic voidexportModel(ApplicationModel model, boolean test) Deprecated, for removal: This API element is subject to removal in a future version.for removal since 3.31.0 in favor of ApplicationModelSerializer methodsstatic PathgetSerializedTestAppModelPath(Path projectBuildDir) Returns a location where a serializedApplicationModelwould be found for test mode.static ArtifactKey[]static ApplicationModelreadAppModelWithWorkspaceId(Path file, int workspaceId) Deprecated, for removal: This API element is subject to removal in a future version.since 3.31.0 in favor of ApplicationModelSerializer methodsstatic PathresolveSerializedAppModelPath(Path projectBuildDir) Returns a location where a serializedApplicationModelwould be found for dev mode.static PathserializeAppModel(ApplicationModel model, boolean test) Deprecated, for removal: This API element is subject to removal in a future version.for removal since 3.31.0 in favor of ApplicationModelSerializer methodsstatic voidserializeAppModel(ApplicationModel model, Path serializedModel) Deprecated, for removal: This API element is subject to removal in a future version.for removal since 3.31.0 in favor of ApplicationModelSerializer methodsstatic PathDeprecated, for removal: This API element is subject to removal in a future version.for removal since 3.31.0 in favor of ApplicationModelSerializer methodsstatic String[]static StringtoTextFlags(int flags) Generates a comma-separated list of flag names for an integer representation of the flags.static voidwriteAppModelWithWorkspaceId(ApplicationModel appModel, int workspaceId, Path file) Deprecated, for removal: This API element is subject to removal in a future version.since 3.31.0 in favor of ApplicationModelSerializer methods
-
Constructor Details
-
BootstrapUtils
public BootstrapUtils()
-
-
Method Details
-
splitByWhitespace
-
parseDependencyCondition
-
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:
AppModelResolverExceptionIOException
-
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:
AppModelResolverExceptionIOException
-
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
Returns a location where a serializedApplicationModelwould be found for dev mode.- Parameters:
projectBuildDir- project build directory- Returns:
- file of a serialized application model for dev mode
-
getSerializedTestAppModelPath
Returns a location where a serializedApplicationModelwould 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 methodsSerializes an
ApplicationModelalong with the workspace ID for which it was resolved. The serialization format will be different from the one used byresolveSerializedAppModelPath(Path)andgetSerializedTestAppModelPath(Path).- Parameters:
appModel- application model to serializeworkspaceId- workspace IDfile- 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 methodsDeserializes an
ApplicationModelfrom 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
workspaceIdand if they don't match the method will return null.Once the
ApplicationModelwas 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 fileworkspaceId- expected workspace ID- Returns:
- deserialized application model
- Throws:
ClassNotFoundException- in case a required class could not be loadedIOException- in case of an IO failure
-
toTextFlags
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
-