diff --git a/core/src/main/java/org/elasticsearch/repositories/RepositoryTypesRegistry.java b/core/src/main/java/org/elasticsearch/repositories/RepositoryTypesRegistry.java index e66c79da06f..d2f02aa5795 100644 --- a/core/src/main/java/org/elasticsearch/repositories/RepositoryTypesRegistry.java +++ b/core/src/main/java/org/elasticsearch/repositories/RepositoryTypesRegistry.java @@ -29,10 +29,10 @@ import org.elasticsearch.index.snapshots.IndexShardRepository; */ public class RepositoryTypesRegistry { // invariant: repositories and shardRepositories have the same keyset - private final ExtensionPoint.TypeExtensionPoint repositoryTypes = - new ExtensionPoint.TypeExtensionPoint<>("repository", Repository.class); - private final ExtensionPoint.TypeExtensionPoint shardRepositoryTypes = - new ExtensionPoint.TypeExtensionPoint<>("index_repository", IndexShardRepository.class); + private final ExtensionPoint.SelectedType repositoryTypes = + new ExtensionPoint.SelectedType<>("repository", Repository.class); + private final ExtensionPoint.SelectedType shardRepositoryTypes = + new ExtensionPoint.SelectedType<>("index_repository", IndexShardRepository.class); /** Adds a new repository type to the registry, bound to the given implementation classes. */ public void registerRepository(String name, Class repositoryType, Class shardRepositoryType) {