Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: dexpace/java-sdk
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: dexpace/java-sdk
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: feat/withoptions-immutable-client-config
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 1 commit
  • 4 files changed
  • 1 contributor

Commits on Jun 17, 2026

  1. feat: add Configuration.withOptions for copy-on-write derivation

    Introduce an ergonomic way to derive a lightly-reconfigured Configuration
    without mutating the original. Configuration.withOptions(Consumer<Builder>)
    applies a builder mutator to a copy and returns a new immutable instance;
    Configuration.toBuilder() exposes the same prefilled builder for callers that
    prefer to thread it through other builder-folding code.
    
    This settles the open question of unified, cloneable client config: the
    layered Configuration is the single client-config type, so it gains the
    clone-and-reconfigure entry points rather than introducing a parallel one.
    ConfigurationBuilder now implements Builder<Configuration> and gains a
    constructor preloaded from an existing Configuration.
    
    Derivation is copy-on-write in the value sense: the override map is copied so
    the original and the derived instance never alias mutable state, while the
    env/system-property lookup seams are shared by reference (they are pure read
    functions and never mutated). The immutability semantics are documented in the
    Configuration KDoc.
    
    Closes #60
    OmarAlJarrah committed Jun 17, 2026
    Configuration menu
    Copy the full SHA
    a4d49ab View commit details
    Browse the repository at this point in the history
Loading