Merge branch 'stable-3.3' into stable-3.5

* stable-3.3:
  Bind the cached-refdb repository manager also as named binding
  Cache refs/... resolutions
  Allow binding the module without GitRepositoryManager
  Preload all cache when fetching all refs
  Use DelegateRepository implementation from Gerrit core
  Add change verification

Change-Id: If237264e04363e25bd46d21c551433b830b80a53
diff --git a/src/main/java/com/googlesource/gerrit/plugins/cachedrefdb/CachedGitRepositoryManager.java b/src/main/java/com/googlesource/gerrit/plugins/cachedrefdb/CachedGitRepositoryManager.java
index a273e70..e527725 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/cachedrefdb/CachedGitRepositoryManager.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/cachedrefdb/CachedGitRepositoryManager.java
@@ -60,4 +60,9 @@
   LocalDiskRepositoryManager getRepoManager() {
     return repoManager;
   }
+
+  @Override
+  public Status getRepositoryStatus(Project.NameKey name) {
+    return repoManager.getRepositoryStatus(name);
+  }
 }
diff --git a/src/main/java/com/googlesource/gerrit/plugins/cachedrefdb/CachedRefRepository.java b/src/main/java/com/googlesource/gerrit/plugins/cachedrefdb/CachedRefRepository.java
index c47e34f..dada373 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/cachedrefdb/CachedRefRepository.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/cachedrefdb/CachedRefRepository.java
@@ -180,7 +180,7 @@
   }
 
   @Override
-  public Set<ObjectId> getAdditionalHaves() {
+  public Set<ObjectId> getAdditionalHaves() throws IOException {
     return delegate.getAdditionalHaves();
   }
 
@@ -203,7 +203,7 @@
   }
 
   @Override
-  public Map<AnyObjectId, Set<Ref>> getAllRefsByPeeledObjectId() {
+  public Map<AnyObjectId, Set<Ref>> getAllRefsByPeeledObjectId() throws IOException {
     return delegate.getAllRefsByPeeledObjectId();
   }