roboguice.config
Class RoboModule
java.lang.Object
com.google.inject.AbstractModule
roboguice.config.RoboModule
- All Implemented Interfaces:
- com.google.inject.Module
public class RoboModule
- extends com.google.inject.AbstractModule
A Module that provides bindings and configuration to use Guice on Android.
Used by RoboApplication
.
- Author:
- Mike Burton, Pierre-Yves Ricau (py.ricau+roboguice@gmail.com)
Method Summary |
protected void |
configure()
Configure this module to define Android related bindings.
If you want to provide your own bindings, you should NOT
override this method, but rather create a Module implementation
and add it to the configuring modules by overriding
RoboApplication.addApplicationModules(List) .
|
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 |
contextScope
protected ContextScope contextScope
throwingContextProvider
protected com.google.inject.Provider<android.content.Context> throwingContextProvider
contextProvider
protected com.google.inject.Provider<android.content.Context> contextProvider
resourceListener
protected ResourceListener resourceListener
viewListener
protected ViewListener viewListener
extrasListener
protected ExtrasListener extrasListener
preferenceListener
protected PreferenceListener preferenceListener
application
protected android.app.Application application
RoboModule
public RoboModule(ContextScope contextScope,
com.google.inject.Provider<android.content.Context> throwingContextProvider,
com.google.inject.Provider<android.content.Context> contextProvider,
ResourceListener resourceListener,
ViewListener viewListener,
ExtrasListener extrasListener,
PreferenceListener preferenceListener,
android.app.Application application)
configure
protected void configure()
- Configure this module to define Android related bindings.
If you want to provide your own bindings, you should NOT
override this method, but rather create a Module
implementation
and add it to the configuring modules by overriding
RoboApplication.addApplicationModules(List)
.
- Specified by:
configure
in class com.google.inject.AbstractModule
Copyright © 2011. All Rights Reserved.