public class Backend
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
Backend() |
Modifier and Type | Method and Description |
---|---|
AuthManager |
getAuthManager()
Returns the AuthManager
|
Config |
getConfig()
Returns the config used by Divide.
|
DataManager |
getDataManager()
Returns the DataManager
|
protected com.google.inject.Injector |
getInjector(BackendModule module) |
static <BackendType extends Backend> |
init(Config<BackendType> config)
Initialization point for divide.
|
static void |
inject(java.lang.Object o)
Used to inject objects managed by divide into an object.
|
public AuthManager getAuthManager()
public DataManager getDataManager()
public Config getConfig()
public static void inject(java.lang.Object o)
o
- object to be injected.public static <BackendType extends Backend> BackendType init(Config<BackendType> config)
BackendType
- Specific type of Backend to return, for extentions on the Backend class.config
- Configuration information for Divide. @see Configprotected com.google.inject.Injector getInjector(BackendModule module)