Package io.quarkus.registry.config
Class RegistriesConfigImpl
- java.lang.Object
-
- io.quarkus.registry.config.RegistriesConfigImpl
-
- All Implemented Interfaces:
RegistriesConfig
public class RegistriesConfigImpl extends Object implements RegistriesConfig
Top of the config hierarchy. Holder of the rest of the things. Asymmetric data manipulation: Deserialization always uses the builder; Serialization always uses the Impl.- See Also:
creates a builder,creates a builder from an existing RegistriesConfig,creates a builder from the contents of a file,creates (and builds) a builder from the contents of a file,to save an updated file-based configuration,for writing an RegistriesConfig to a file,for building a builder before serializing it.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRegistriesConfigImpl.BuilderBuilder.-
Nested classes/interfaces inherited from interface io.quarkus.registry.config.RegistriesConfig
RegistriesConfig.Mutable
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)List<RegistryConfig>getRegistries()A list of registries that should queried when generating catalogs of platforms and extensions.ConfigSourcegetSource()inthashCode()booleanisDebug()Enables or disables registry client debug mode.voidpersist()Persist this configuration to the original source (if possible).StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.quarkus.registry.config.RegistriesConfig
mutable, persist
-
-
-
-
Method Detail
-
isDebug
public boolean isDebug()
Description copied from interface:RegistriesConfigEnables or disables registry client debug mode.- Specified by:
isDebugin interfaceRegistriesConfig- Returns:
- true if the debug mode should be enabled, otherwise - false
-
getRegistries
public List<RegistryConfig> getRegistries()
Description copied from interface:RegistriesConfigA list of registries that should queried when generating catalogs of platforms and extensions.- Specified by:
getRegistriesin interfaceRegistriesConfig- Returns:
- list of registries that should queried when generating catalogs of platforms and extensions
-
getSource
public ConfigSource getSource()
- Specified by:
getSourcein interfaceRegistriesConfig- Returns:
- ConfigSource that describes origin of this configuration
-
persist
public void persist() throws IOExceptionDescription copied from interface:RegistriesConfigPersist this configuration to the original source (if possible). Does nothing for configurations read from environment variables.- Specified by:
persistin interfaceRegistriesConfig- Throws:
IOException- if the source file can not be written to.
-
-