public class BackendModule<BackendType extends Backend,ConfigType extends Config<BackendType>>
extends com.google.inject.AbstractModule
Modifier and Type | Field and Description |
---|---|
protected ConfigType |
config |
protected java.lang.Class<ConfigType> |
type |
Modifier | Constructor and Description |
---|---|
protected |
BackendModule()
No args constructor, all implementations/extentions must provide a no args constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
additionalConfig(ConfigType config)
Override to provide additional module injection configuration.
|
protected void |
configure() |
java.lang.Class<AuthManager> |
getAuthManagerClass() |
java.lang.Class<DataManager> |
getDataManagerClass() |
java.lang.Class<ObjectManager> |
getObjectManagerClass() |
void |
init(ConfigType config)
Sets @see config, must be set before module can be loaded.
|
<A extends AuthManager> |
setAuthManagerClass(java.lang.Class<A> authManagerClass) |
<D extends DataManager> |
setDataManagerClass(java.lang.Class<D> dataManagerClass) |
<O extends ObjectManager> |
setObjectManagerClass(java.lang.Class<O> objectManagerClass) |
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
protected ConfigType extends Config<BackendType> config
protected java.lang.Class<ConfigType extends Config<BackendType>> type
protected BackendModule()
public void init(ConfigType config)
config
- protected final void configure()
configure
in class com.google.inject.AbstractModule
protected void additionalConfig(ConfigType config)
config
- public java.lang.Class<AuthManager> getAuthManagerClass()
public <A extends AuthManager> void setAuthManagerClass(java.lang.Class<A> authManagerClass)
public java.lang.Class<DataManager> getDataManagerClass()
public <D extends DataManager> void setDataManagerClass(java.lang.Class<D> dataManagerClass)
public java.lang.Class<ObjectManager> getObjectManagerClass()
public <O extends ObjectManager> void setObjectManagerClass(java.lang.Class<O> objectManagerClass)