Annotate ReplicationRemotesUpdater as @DynamicItem.Final

Make sure that no plugins other than the replication
bind an implementation of ReplicationRemotesUpdater.

The ReplicationRemotesUpdater is an API exposed by the
replication plugin to allow other plugins to update the
replication remotes independently from how they are stored
and what is the backend that would store the data.

Depends-On: https://gerrit-review.googlesource.com/c/gerrit/+/429017
Bug: Issue 338786480
Change-Id: Ia99f6d536ab5a60f81212600fe4ab92be20789d7
diff --git a/src/main/java/com/googlesource/gerrit/plugins/replication/api/ReplicationRemotesUpdater.java b/src/main/java/com/googlesource/gerrit/plugins/replication/api/ReplicationRemotesUpdater.java
index 20d661d..80949b5 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/replication/api/ReplicationRemotesUpdater.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/replication/api/ReplicationRemotesUpdater.java
@@ -17,12 +17,14 @@
 import static com.google.gerrit.common.UsedAt.Project.PLUGIN_GITHUB;
 
 import com.google.gerrit.common.UsedAt;
+import com.google.gerrit.extensions.registration.DynamicItem;
 import com.google.gerrit.server.securestore.SecureStore;
 import java.io.IOException;
 import org.eclipse.jgit.lib.Config;
 
 /** Public API to update replication plugin remotes configurations programmatically. */
 @UsedAt(PLUGIN_GITHUB)
+@DynamicItem.Final(implementedByPlugin = "replication")
 public interface ReplicationRemotesUpdater {
 
   /**