Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -902,6 +902,20 @@ public static void setRestrictSystemPropertiesDefault(boolean val) {
restrictSystemPropsDefault = val;
}

/**
* Creates an Unmodifiable view of Configuration. Any attempted changes to
* this object directly will throw an UnsupportedOperationException. The
* object returned does not prevent changes to the the configuration through
* use of static methods and means external to the object returned.
*
* @param other The configuration to wrap
* @return an Unmodifiable view of Configuration
*/
public static Configuration unmodifiableConfiguration(Configuration other) {
Configuration unmodifiable = new UnmodifiableConfiguration(other);
return unmodifiable;
}

public void setRestrictSystemProperties(boolean val) {
this.restrictSystemProps = val;
}
Expand Down
Loading