public class RepositoryTypesRegistry extends Object
Repository
and IndexShardRepository
.Constructor and Description |
---|
RepositoryTypesRegistry() |
Modifier and Type | Method and Description |
---|---|
void |
bindType(Binder binder,
String type)
Looks up the given type and binds the implementation into the given binder.
|
void |
registerRepository(String name,
Class<? extends Repository> repositoryType,
Class<? extends IndexShardRepository> shardRepositoryType)
Adds a new repository type to the registry, bound to the given implementation classes.
|
public void registerRepository(String name, Class<? extends Repository> repositoryType, Class<? extends IndexShardRepository> shardRepositoryType)
public void bindType(Binder binder, String type)
IllegalArgumentException
if the given type does not exist.Copyright © 2009–2016. All rights reserved.