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>
  • Method Details

    • 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

      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

      Specified by:
      build in interface JsonBuilder<RegistriesConfig>
      Returns:
      an immutable copy of this configuration
    • persist

      default void persist(Path p) throws IOException
      Description copied from interface: RegistriesConfig
      Persist this configuration to the specified file.
      Specified by:
      persist in interface RegistriesConfig
      Parameters:
      p - Target path
      Throws:
      IOException - if the specified file can not be written to.