mirror of
https://github.com/google/nomulus.git
synced 2025-05-02 13:07:50 +02:00
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
43 lines
1.1 KiB
Text
43 lines
1.1 KiB
Text
package(
|
|
default_visibility = ["//visibility:public"],
|
|
)
|
|
|
|
licenses(["notice"]) # Apache 2.0
|
|
|
|
java_library(
|
|
name = "request",
|
|
srcs = glob(
|
|
["*.java"],
|
|
exclude = ["Modules.java"],
|
|
),
|
|
deps = [
|
|
"//java/google/registry/request/auth",
|
|
"//java/google/registry/request/lock",
|
|
"//java/google/registry/util",
|
|
"@com_google_appengine_api_1_0_sdk",
|
|
"@com_google_auto_value",
|
|
"@com_google_code_findbugs_jsr305",
|
|
"@com_google_dagger",
|
|
"@com_google_guava",
|
|
"@com_googlecode_json_simple",
|
|
"@javax_servlet_api",
|
|
"@joda_time",
|
|
],
|
|
)
|
|
|
|
java_library(
|
|
name = "modules",
|
|
srcs = ["Modules.java"],
|
|
deps = [
|
|
"//java/google/registry/config",
|
|
"//java/google/registry/keyring/api",
|
|
"@com_google_api_client",
|
|
"@com_google_api_client_appengine",
|
|
"@com_google_appengine_api_1_0_sdk",
|
|
"@com_google_dagger",
|
|
"@com_google_guava",
|
|
"@com_google_http_client",
|
|
"@com_google_http_client_appengine",
|
|
"@com_google_http_client_jackson2",
|
|
],
|
|
)
|