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