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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description booleanaddRegistry(RegistryConfig config)Add a registry to the configurationbooleanaddRegistry(String registryId)Add a registry to the configurationRegistriesConfigbuild()default voidpersist(Path p)Persist this configuration to the specified file.booleanremoveRegistry(String registryId)Remove a registry from the configurationRegistriesConfig.MutablesetDebug(boolean debug)RegistriesConfig.MutablesetRegistries(List<RegistryConfig> registries)RegistriesConfig.MutablesetRegistry(RegistryConfig config)RegistriesConfig.MutablesetRegistry(String registryId)-
Methods inherited from interface io.quarkus.registry.config.RegistriesConfig
getRegistries, getSource, isDebug, mutable, persist
-
-
-
-
Method Detail
-
setDebug
RegistriesConfig.Mutable setDebug(boolean debug)
- Parameters:
debug- to enable debugging for this configuration- Returns:
- this. Use for chaining.
-
setRegistries
RegistriesConfig.Mutable setRegistries(List<RegistryConfig> registries)
- Parameters:
registries- List of constructed Registry configurations- Returns:
- this. Use for chaining.
-
setRegistry
RegistriesConfig.Mutable setRegistry(String registryId)
- Parameters:
registryId- The id to add (a RegistryConfig object will be created for it)- Returns:
- this. Use for chaining.
-
setRegistry
RegistriesConfig.Mutable setRegistry(RegistryConfig config)
- Parameters:
config- A RegistryConfig object to add to the configuration- Returns:
- this. Use for chaining.
-
addRegistry
boolean addRegistry(String registryId)
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
boolean addRegistry(RegistryConfig config)
Add a registry to the configuration- Parameters:
config- A RegistryConfig object to add to the configuration- Returns:
- true if the registry was added
-
removeRegistry
boolean removeRegistry(String registryId)
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
default void persist(Path p) throws IOException
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.
-
-