Package io.quarkus.registry.catalog
Interface ExtensionCatalog
- All Superinterfaces:
ExtensionOrigin
- All Known Subinterfaces:
ExtensionCatalog.Mutable
- All Known Implementing Classes:
ExtensionCatalogImpl,ExtensionCatalogImpl.Builder
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ExtensionCatalog.Mutablebuilder()static ExtensionCatalogRead config from the specified filestatic ExtensionCatalogfromStream(InputStream inputStream) Read config from an input streamExtension categoriesAll the origins this catalog is derived from.Quarkus extensions that constitute the catalog.Quarkus core version used by the extensions in this catalog.In case the catalog was built for a custom version of the Quarkus core, this version represents the corresponding upstream community Quarkus core version.default ExtensionCatalog.Mutablemutable()static ExtensionCatalog.MutablemutableFromFile(Path path) Read config from the specified filedefault voidPersist this configuration to the specified file.Methods inherited from interface io.quarkus.registry.catalog.ExtensionOrigin
getBom, getId, getMetadata, isPlatform
-
Field Details
-
MD_MINIMUM_JAVA_VERSION
- See Also:
-
MD_RECOMMENDED_JAVA_VERSION
- See Also:
-
-
Method Details
-
getDerivedFrom
List<ExtensionOrigin> getDerivedFrom()All the origins this catalog is derived from.- Returns:
- all the origins this catalog derives from.
-
getQuarkusCoreVersion
String getQuarkusCoreVersion()Quarkus core version used by the extensions in this catalog.- Returns:
- Quarkus core version used by the extensions in this catalog
-
getUpstreamQuarkusCoreVersion
String getUpstreamQuarkusCoreVersion()In case the catalog was built for a custom version of the Quarkus core, this version represents the corresponding upstream community Quarkus core version. This is done to be able to link the custom builds of Quarkus back to the upstream community extensions ecosystem. This method may return null in case the corresponding version does not exist in the upstream community or simply to link back to it.- Returns:
- the upstream community Quarkus core version corresponding to the Quarkus core version used in this catalog
-
getExtensions
Collection<Extension> getExtensions()Quarkus extensions that constitute the catalog.- Returns:
- Quarkus extensions that constitute the catalog.
-
getCategories
Extension categories- Returns:
- extension categories
-
mutable
- Specified by:
mutablein interfaceExtensionOrigin- 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 ExtensionCatalog object
- Throws:
IOException
-
mutableFromFile
Read config from the specified file- Parameters:
path- File to read from (yaml or json)- Returns:
- read-only ExtensionCatalog object (empty/default for an empty file)
- Throws:
IOException
-
fromStream
Read config from an input stream- Parameters:
inputStream- input stream to read from- Returns:
- read-only ExtensionCatalog object (empty/default for an empty file)
- Throws:
IOException
-