google-nomulus/java/google/registry/export
guyben 978149e677 Create an injectable LockHandler
We create an injectable LockHandler that just calls the static
Lock.executeWithLocks function.

I'm not sure what's the correct place to put the LockHandler. I think
model/server is only appropriate for the actual datastore lock. This is a "per request" lock, so maybe request/lock?

-----------------------------

This is the initial step in adding the "lock implicitly released on request death" feature, but it's also useful on its own - easier to test Actions when we can use a fake lock.

To keep this CL simple, we keep using the old Lock as is in most places. We just choose a single example to convert to LockHandler to showcase it. Converting all other uses will be in a subsequent CL.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=167357564
2017-09-12 15:51:50 -04:00
..
sheet Create an injectable LockHandler 2017-09-12 15:51:50 -04:00
BigqueryPollJobAction.java Change @Auth to an AutoValue, and created a set of predefined Auths 2017-08-01 16:33:10 -04:00
BUILD Setup auth settings in PublishDetailReports @Action to support tool access 2017-05-17 11:43:09 -04:00
CheckSnapshotAction.java Change @Auth to an AutoValue, and created a set of predefined Auths 2017-08-01 16:33:10 -04:00
DatastoreBackupInfo.java Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
DatastoreBackupService.java Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
DriveModule.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ExportConstants.java Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
ExportDomainListsAction.java Change @Auth to an AutoValue, and created a set of predefined Auths 2017-08-01 16:33:10 -04:00
ExportRequestModule.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ExportReservedTermsAction.java Change @Auth to an AutoValue, and created a set of predefined Auths 2017-08-01 16:33:10 -04:00
ExportSnapshotAction.java Change @Auth to an AutoValue, and created a set of predefined Auths 2017-08-01 16:33:10 -04:00
ExportUtils.java Remove UNRESERVED as a reservation type 2017-03-27 13:31:33 -04:00
LoadSnapshotAction.java Change @Auth to an AutoValue, and created a set of predefined Auths 2017-08-01 16:33:10 -04:00
package-info.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
PublishDetailReportAction.java Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00
SyncGroupMembersAction.java Change @Auth to an AutoValue, and created a set of predefined Auths 2017-08-01 16:33:10 -04:00
UpdateSnapshotViewAction.java Add explicit useLegacySql flag to UpdateSnapshotViewAction 2017-08-29 17:20:09 -04:00