roboguice.config
Class DefaultRoboModule
java.lang.Object
com.google.inject.AbstractModule
roboguice.config.DefaultRoboModule
- All Implemented Interfaces:
- com.google.inject.Module
public class DefaultRoboModule
- extends com.google.inject.AbstractModule
A Module that provides bindings and configuration to use Guice on Android.
Used by RoboGuice
.
If you wish to add your own bindings, DO NOT subclass this class. Instead, create a new
module that extends AbstractModule with your own bindings, then do something like the following:
RoboGuice.setAppliationInjector( app, RoboGuice.DEFAULT_STAGE, Modules.override(RoboGuice.newDefaultRoboModule(app)).with(new MyModule() );
- Author:
- Mike Burton
- See Also:
Modules.override(com.google.inject.Module...)
,
RoboGuice.setBaseApplicationInjector(android.app.Application, com.google.inject.Stage, com.google.inject.Module...)
,
RoboGuice.newDefaultRoboModule(android.app.Application)
,
RoboGuice.DEFAULT_STAGE
Method Summary |
protected void |
configure()
Configure this module to define Android related bindings. |
Methods inherited from class com.google.inject.AbstractModule |
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fragmentManagerClass
protected static final Class fragmentManagerClass
accountManagerClass
protected static final Class accountManagerClass
application
protected android.app.Application application
contextScope
protected ContextScope contextScope
resourceListener
protected ResourceListener resourceListener
viewListener
protected ViewListener viewListener
DefaultRoboModule
public DefaultRoboModule(android.app.Application application,
ContextScope contextScope,
ViewListener viewListener,
ResourceListener resourceListener)
configure
protected void configure()
- Configure this module to define Android related bindings.
- Specified by:
configure
in class com.google.inject.AbstractModule
Copyright © 2012. All Rights Reserved.