Repository protection

Repository protection

If source code changes the repository at run-time, this can lead to inconsistent states and unexpected behavior of the whole system. That's why the in-memory repository that is built during server or client startup is locked for any write access during run-time. If some code nevertheless wants to make a change, an exception will be thrown and logged to the log file.
Switch to read-only mode for repository after server start:
Switch to read-only mode for repository after server start:
Switch to read-only mode for repository after client start:
Switch to read-only mode for repository after client start
UnsupportedOperationException if the repository is to be changed during run-time:
UnsupportedOperationException if the repository is to be changed during run-time

0 COMMENTS

We’d like to hear from you!