Skip to main content

Read-only Configs

The following settings can be used to create read-only Config objects:

Config.BuilderreadOnly()
Example
// Create a read-only config
Config config = Config.create("MyConfig.cfg").readOnly().build();

This causes all methods that make modifications to throw UnsupportedOperationException.

Discussion

Share feedback or follow-up questions for this page directly through GitHub.