roboguice.config
Class RoboModule

java.lang.Object
  extended by com.google.inject.AbstractModule
      extended by 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)

Field Summary
protected  android.app.Application application
           
protected  com.google.inject.Provider<android.content.Context> contextProvider
           
protected  ContextScope contextScope
           
protected  ExtrasListener extrasListener
           
protected  PreferenceListener preferenceListener
           
protected  ResourceListener resourceListener
           
protected  com.google.inject.Provider<android.content.Context> throwingContextProvider
           
protected  ViewListener viewListener
           
 
Constructor Summary
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)
           
 
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
 

Field Detail

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
Constructor Detail

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)
Method Detail

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.