google-nomulus/java/google/registry/module/backend
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
..
BackendComponent.java Install DummyKeyringModule in FOSS build 2017-11-21 18:34:13 -05:00
BackendModule.java Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
BackendRequestComponent.java Add end-to-end code to run Beam template from App Engine 2017-11-21 18:30:09 -05:00
BackendRequestHandler.java Remove requireLogin action attribute 2017-06-21 10:04:05 -04:00
BackendServlet.java Make FOSS build work with DummyKeyringModule 2017-12-01 22:14:06 -05:00
BUILD Add apache beam to registry and open source 2017-11-07 17:36:07 -05:00
package-info.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00