Package io.quarkus.registry.catalog
Interface PlatformCatalog
- All Known Subinterfaces:
PlatformCatalog.Mutable
- All Known Implementing Classes:
PlatformCatalogImpl,PlatformCatalogImpl.Builder
public interface PlatformCatalog
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic PlatformCatalog.Mutablebuilder()static PlatformCatalogRead config from the specified filegetPlatform(String platformId) default Platformdefault PlatformCatalog.Mutablemutable()static PlatformCatalog.MutablemutableFromFile(Path path) Read config from the specified filedefault voidPersist this configuration to the specified file.
-
Method Details
-
getPlatforms
Collection<Platform> getPlatforms() -
getMetadata
-
getPlatform
-
getRecommendedPlatform
-
mutable
- Returns:
- a mutable copy of this configuration
-
persist
Persist this configuration to the specified file.- Parameters:
p- Target path- Throws:
IOException- if the specified file can not be written to.
-
builder
- Returns:
- a new mutable instance
-
fromFile
Read config from the specified file- Parameters:
path- File to read from (yaml or json)- Returns:
- read-only PlatformCatalog object
- Throws:
IOException
-
mutableFromFile
Read config from the specified file- Parameters:
path- File to read from (yaml or json)- Returns:
- read-only PlatformCatalog object (empty/default for an empty file)
- Throws:
IOException
-