Package io.quarkus.bootstrap.model
Class PlatformImportsImpl
- java.lang.Object
-
- io.quarkus.bootstrap.model.PlatformImportsImpl
-
- All Implemented Interfaces:
PlatformImports,Serializable
public class PlatformImportsImpl extends Object implements PlatformImports, Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static charPLATFORM_KEY_STREAM_SEPARATORstatic StringPROPERTY_PREFIXstatic charSTREAM_VERSION_SEPARATOR
-
Constructor Summary
Constructors Constructor Description PlatformImportsImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPlatformDescriptor(String groupId, String artifactId, String classifier, String type, String version)voidaddPlatformProperties(String groupId, String artifactId, String classifier, String type, String version, Path propsPath)Collection<ArtifactCoords>getImportedPlatformBoms()All the Quarkus platform BOMs imported by an application.StringgetMisalignmentReport()In case Quarkus platform member BOM imports were misaligned this method will return a detailed information about what was found to be in conflict.Map<String,String>getPlatformProperties()Quarkus platform properties aggregated from all the platform an application is based on.Collection<PlatformReleaseInfo>getPlatformReleaseInfo()Quarkus platform release information.booleanisAligned()Checks whether the platform member BOM imports belong to the same platform release.static booleanisPlatformReleaseInfo(String s)voidsetPlatformProperties(Map<String,String> platformProps)
-
-
-
Field Detail
-
PROPERTY_PREFIX
public static final String PROPERTY_PREFIX
- See Also:
- Constant Field Values
-
PLATFORM_KEY_STREAM_SEPARATOR
public static final char PLATFORM_KEY_STREAM_SEPARATOR
- See Also:
- Constant Field Values
-
STREAM_VERSION_SEPARATOR
public static final char STREAM_VERSION_SEPARATOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
isPlatformReleaseInfo
public static boolean isPlatformReleaseInfo(String s)
-
getPlatformReleaseInfo
public Collection<PlatformReleaseInfo> getPlatformReleaseInfo()
Description copied from interface:PlatformImportsQuarkus platform release information.- Specified by:
getPlatformReleaseInfoin interfacePlatformImports- Returns:
- platform release information
-
getImportedPlatformBoms
public Collection<ArtifactCoords> getImportedPlatformBoms()
Description copied from interface:PlatformImportsAll the Quarkus platform BOMs imported by an application.- Specified by:
getImportedPlatformBomsin interfacePlatformImports- Returns:
- all the Quarkus platform BOMs imported by an application
-
addPlatformDescriptor
public void addPlatformDescriptor(String groupId, String artifactId, String classifier, String type, String version)
-
addPlatformProperties
public void addPlatformProperties(String groupId, String artifactId, String classifier, String type, String version, Path propsPath) throws AppModelResolverException
- Throws:
AppModelResolverException
-
getPlatformProperties
public Map<String,String> getPlatformProperties()
Description copied from interface:PlatformImportsQuarkus platform properties aggregated from all the platform an application is based on.- Specified by:
getPlatformPropertiesin interfacePlatformImports- Returns:
- aggregated platform properties
-
getMisalignmentReport
public String getMisalignmentReport()
Description copied from interface:PlatformImportsIn case Quarkus platform member BOM imports were misaligned this method will return a detailed information about what was found to be in conflict.- Specified by:
getMisalignmentReportin interfacePlatformImports- Returns:
- platform member BOM misalignment report or null, in case no conflict was detected
-
isAligned
public boolean isAligned()
Description copied from interface:PlatformImportsChecks whether the platform member BOM imports belong to the same platform release.- Specified by:
isAlignedin interfacePlatformImports- Returns:
- true if imported platform member BOMs belong to the same platform release, otherwise - false
-
-