public class RepositoriesModule extends AbstractModule
registerRepository(String, Class, Class)
.Constructor and Description |
---|
RepositoriesModule() |
Modifier and Type | Method and Description |
---|---|
protected void |
configure()
Configures a
Binder via the exposed methods. |
void |
registerRepository(String type,
Class<? extends Repository> repositoryType,
Class<? extends IndexShardRepository> shardRepositoryType)
Registers a custom repository type to the given
Repository and IndexShardRepository . |
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
public void registerRepository(String type, Class<? extends Repository> repositoryType, Class<? extends IndexShardRepository> shardRepositoryType)
Repository
and IndexShardRepository
.protected void configure()
AbstractModule
Binder
via the exposed methods.configure
in class AbstractModule
Copyright © 2009–2016. All rights reserved.