Package io.quarkus.registry.config
Interface RegistriesConfig.Mutable
- All Superinterfaces:
JsonBuilder<RegistriesConfig>,RegistriesConfig
- All Known Implementing Classes:
RegistriesConfigImpl.Builder
- Enclosing interface:
RegistriesConfig
public static interface RegistriesConfig.Mutable
extends RegistriesConfig, JsonBuilder<RegistriesConfig>
-
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 -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddRegistry(RegistryConfig config) Add a registry to the configurationbooleanaddRegistry(String registryId) Add a registry to the configurationbuild()default voidPersist this configuration to the specified file.booleanremoveRegistry(String registryId) Remove a registry from the configurationsetDebug(boolean debug) setRegistries(List<RegistryConfig> registries) setRegistry(RegistryConfig config) setRegistry(String registryId) Methods inherited from interface io.quarkus.registry.config.RegistriesConfig
getRegistries, getSource, isDebug, mutable, persist
-
Method Details
-
setDebug
- Parameters:
debug- to enable debugging for this configuration- Returns:
- this. Use for chaining.
-
setRegistries
- Parameters:
registries- List of constructed Registry configurations- Returns:
- this. Use for chaining.
-
setRegistry
- Parameters:
registryId- The id to add (a RegistryConfig object will be created for it)- Returns:
- this. Use for chaining.
-
setRegistry
- Parameters:
config- A RegistryConfig object to add to the configuration- Returns:
- this. Use for chaining.
-
addRegistry
Add a registry to the configuration- Parameters:
registryId- The id to add (a RegistryConfig object will be created for it)- Returns:
- true if the registry was added
-
addRegistry
Add a registry to the configuration- Parameters:
config- A RegistryConfig object to add to the configuration- Returns:
- true if the registry was added
-
removeRegistry
Remove a registry from the configuration- Parameters:
registryId- The id of the registry to remove- Returns:
- true if the registry was removed
-
build
RegistriesConfig build()- Specified by:
buildin interfaceJsonBuilder<RegistriesConfig>- Returns:
- an immutable copy of this configuration
-
persist
Description copied from interface:RegistriesConfigPersist this configuration to the specified file.- Specified by:
persistin interfaceRegistriesConfig- Parameters:
p- Target path- Throws:
IOException- if the specified file can not be written to.
-