A read-only configuration exposes retrieval without update. The common mistake is passing a full configuration interface when a consumer only needs Get; omitting Set restricts the behavior available to that consumer. section 2.5.2
Expose only Get
IntConfig provides Get and Set, but Foo accepts intConfigGetter, so Foo can retrieve the threshold while having no Set method through its dependency. This narrows the contract without changing the underlying configuration implementation.
