MCPcopy Create free account
hub / github.com/akeranen/the-one / setSecondaryNamespace

Method setSecondaryNamespace

core/Settings.java:210–213  ·  view source on GitHub ↗

Sets a secondary namespace where a setting is searched from if it isn't found from the primary namespace. Secondary namespace can be used e.g. as a "default" space where the settings are looked from if no specific setting is set. This change can be reverted using #restoreSecondaryNamespace()

(String namespace)

Source from the content-addressed store, hash-verified

208 * namespace is not used (default behavior)
209 */
210 public void setSecondaryNamespace(String namespace) {
211 this.secondaryNamespaces.push(this.secondaryNamespace);
212 this.secondaryNamespace = namespace;
213 }
214
215 /**
216 * Restores the namespace that was in use before a call to setNameSpace

Callers 3

createHostsMethod · 0.95
testEmptyRunIndexMethod · 0.95
getSettingsMethod · 0.95

Calls

no outgoing calls

Tested by 1

testEmptyRunIndexMethod · 0.76