public class RepositoriesModule extends AbstractModule
onModule(RepositoriesModule module)
method, in which
they should register repository using registerRepository(String, Class)
method.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 Module> module)
Registers a custom repository type name against a module.
|
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 Module> module)
type
- The typemodule
- The moduleprotected void configure()
AbstractModule
Binder
via the exposed methods.configure
in class AbstractModule
Copyright © 2009–2015. All rights reserved.