gestalt-config / gestalt

A Java configuration library
https://gestalt-config.github.io/gestalt/
Apache License 2.0
81 stars 2 forks source link

Self destruct nodes #197

Closed credmond-git closed 4 months ago

credmond-git commented 4 months ago

Support nodes that release their value after reading them X times.

Add a new ConfigNodeProcessor that decorators a property based on several regex. The decorator counts the number of times the getValue has been called. If it is more than the X configured, it releases the node it decorates.