google-nomulus/java/google/registry/module/frontend
jianglai e73325edcf Make FOSS build work with DummyKeyringModule
DummyKeyringModule provides a fake string as the JSON credential used to instantiate a GoogleCredential. Of course this would not work and when the metric reporter requests a GoogleCredential in the main thread. This causes the FOSS build to crash on startup, because it defaults to use DummyKeyringModule.

This change allows a graceful handling of such an error by wrapping any calls to instantiate a metric reporter in a try block. Note that any attempt to write to stackdriver will still fail, but that happens in a different thread and will not make the whole program crash.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=177183337
2017-12-01 22:14:06 -05:00
..
BUILD Set KmsKeyring as the default Keyring 2017-07-10 11:40:02 -04:00
FrontendComponent.java Install DummyKeyringModule in FOSS build 2017-11-21 18:34:13 -05:00
FrontendMetricsModule.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
FrontendRequestComponent.java Change registrar console login code in preparation for removing requireLogin 2017-06-21 09:56:10 -04:00
FrontendRequestHandler.java Remove requireLogin action attribute 2017-06-21 10:04:05 -04:00
FrontendServlet.java Make FOSS build work with DummyKeyringModule 2017-12-01 22:14:06 -05:00
package-info.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00