Singularity icon indicating copy to clipboard operation
Singularity copied to clipboard

Make ServiceBinding immutable

Open Rick-van-Dam opened this issue 6 years ago • 0 comments

Currently some fields in ServiceBinding are mutable. This has some disadvantages:

  • It could cause hard to understand problems when reusing the same ServiceBinding instances across containers.
  • If ServiceBindings are immutable there is a possibility to turn this class into a struct for less memory usage (needs more research).

A possible solution would be to split the immutable and mutable part of ServicBinding into 2 different concepts.

Rick-van-Dam avatar Jan 06 '20 08:01 Rick-van-Dam