Package io.quarkus.registry.config
Class RegistriesConfigImpl.Builder
java.lang.Object
io.quarkus.registry.config.RegistriesConfigImpl.Builder
- All Implemented Interfaces:
RegistriesConfig,RegistriesConfig.Mutable,JsonBuilder<RegistriesConfig>
- Enclosing class:
RegistriesConfigImpl
Builder.
set* methods are used for deserialization
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.quarkus.registry.json.JsonBuilder
JsonBuilder.JsonBuilderSerializer<T>Nested classes/interfaces inherited from interface io.quarkus.registry.config.RegistriesConfig
RegistriesConfig.Mutable -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ConfigSourceprotected booleanprotected final List<RegistryConfig> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddRegistry(RegistryConfig config) Add a registry to the configurationbooleanaddRegistry(String registryId) Add a registry to the configurationbuild()A list of registries that should queried when generating catalogs of platforms and extensions.booleanisDebug()Enables or disables registry client debug mode.voidpersist()Persist this configuration to the original source (if possible).booleanremoveRegistry(String registryId) Remove a registry from the configurationsetDebug(boolean debug) setRegistries(List<RegistryConfig> registries) setRegistry(RegistryConfig config) setRegistry(String registryId) setSource(ConfigSource configSource) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.quarkus.registry.config.RegistriesConfig
mutableMethods inherited from interface io.quarkus.registry.config.RegistriesConfig.Mutable
persist
-
Field Details
-
debug
protected boolean debug -
registries
-
configSource
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setRegistry
- Specified by:
setRegistryin interfaceRegistriesConfig.Mutable- Parameters:
registryId- The id to add (a RegistryConfig object will be created for it)- Returns:
- this. Use for chaining.
-
setRegistry
- Specified by:
setRegistryin interfaceRegistriesConfig.Mutable- Parameters:
config- A RegistryConfig object to add to the configuration- Returns:
- this. Use for chaining.
-
addRegistry
Description copied from interface:RegistriesConfig.MutableAdd a registry to the configuration- Specified by:
addRegistryin interfaceRegistriesConfig.Mutable- Parameters:
registryId- The id to add (a RegistryConfig object will be created for it)- Returns:
- true if the registry was added
-
addRegistry
Description copied from interface:RegistriesConfig.MutableAdd a registry to the configuration- Specified by:
addRegistryin interfaceRegistriesConfig.Mutable- Parameters:
config- A RegistryConfig object to add to the configuration- Returns:
- true if the registry was added
-
removeRegistry
Description copied from interface:RegistriesConfig.MutableRemove a registry from the configuration- Specified by:
removeRegistryin interfaceRegistriesConfig.Mutable- Parameters:
registryId- The id of the registry to remove- Returns:
- true if the registry was removed
-
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
-
setDebug
- Specified by:
setDebugin interfaceRegistriesConfig.Mutable- Parameters:
debug- to enable debugging for this configuration- Returns:
- this. Use for chaining.
-
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
-
setRegistries
- Specified by:
setRegistriesin interfaceRegistriesConfig.Mutable- Parameters:
registries- List of constructed Registry configurations- Returns:
- this. Use for chaining.
-
build
- Specified by:
buildin interfaceJsonBuilder<RegistriesConfig>- Specified by:
buildin interfaceRegistriesConfig.Mutable- Returns:
- an immutable copy of this configuration
-
persist
Description 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.
-
getSource
- Specified by:
getSourcein interfaceRegistriesConfig- Returns:
- ConfigSource that describes origin of this configuration
-
setSource
-