mirror of
https://github.com/google/nomulus.git
synced 2025-05-14 00:17:20 +02:00
Remove duplicate RegistryConfig code section from mangled merge
This commit is contained in:
parent
813f837956
commit
517e374925
1 changed files with 0 additions and 18 deletions
|
@ -1233,24 +1233,6 @@ public final class RegistryConfig {
|
||||||
return CONFIG_SETTINGS.get().registryPolicy.contactAndHostRoidSuffix;
|
return CONFIG_SETTINGS.get().registryPolicy.contactAndHostRoidSuffix;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Memoizes loading of the {@link RegistryConfigSettings} POJO.
|
|
||||||
*
|
|
||||||
* <p>Memoizing without cache expiration is used because the app must be re-deployed in order to
|
|
||||||
* change the contents of the YAML config files.
|
|
||||||
*/
|
|
||||||
private static final Supplier<RegistryConfigSettings> CONFIG_SETTINGS =
|
|
||||||
memoize(new Supplier<RegistryConfigSettings>() {
|
|
||||||
@Override
|
|
||||||
public RegistryConfigSettings get() {
|
|
||||||
return getConfigSettings();
|
|
||||||
}});
|
|
||||||
|
|
||||||
/** Returns the roid suffix to be used for the roids of all contacts and hosts. */
|
|
||||||
public static String getContactAndHostRoidSuffix() {
|
|
||||||
return CONFIG_SETTINGS.get().registryPolicy.contactAndHostRoidSuffix;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Memoizes loading of the {@link RegistryConfigSettings} POJO.
|
* Memoizes loading of the {@link RegistryConfigSettings} POJO.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue