mirror of
https://github.com/google/nomulus.git
synced 2025-06-26 22:34:55 +02:00
System property loader for RegistryConfig
This change allows registries to customize the values returned by RegistryConfig methods without needing to edit Domain Registry code in a forked repository. This is accomplished by defining a custom RegistryConfig implementation and specifying its name as a system property in appengine-web.xml. This change also open-sources the production configuration values that Google has chosen to use for these methods. TestRegistryConfig was hitherto used for production configuration in the open source world, which is misleading and inappropriate, considering it tunes values such as the number of commit log buckets to 1. Another important benefit of this change is that it helps registry_tool work out of the box in the open source world. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=129022675
This commit is contained in:
parent
e3bb5dc9b0
commit
3f471a32e2
5 changed files with 317 additions and 5 deletions
|
@ -21,7 +21,7 @@ import java.net.URL;
|
|||
import org.joda.time.Duration;
|
||||
|
||||
/**
|
||||
* Domain Registry configuration.
|
||||
* Domain Registry configuration for global constants that can't be injected.
|
||||
*
|
||||
* <p>The goal of this custom configuration system is to have our project environments configured
|
||||
* in type-safe Java code that can be refactored, rather than XML files and system properties.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue