roboguice.inject
Class ContextScope
java.lang.Object
roboguice.inject.ContextScope
- All Implemented Interfaces:
- com.google.inject.Scope
public class ContextScope
- extends Object
- implements com.google.inject.Scope
- Author:
- Mike Burton
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.google.inject.Scope |
toString |
values
protected WeakHashMap<android.content.Context,Map<com.google.inject.Key<?>,WeakReference<Object>>> values
contextStack
protected ThreadLocal<ContextScope.WeakActiveStack<android.content.Context>> contextStack
viewsForInjection
protected ArrayList<roboguice.inject.ViewMembersInjector<?>> viewsForInjection
preferencesForInjection
protected ArrayList<roboguice.inject.PreferenceMembersInjector<?>> preferencesForInjection
ContextScope
public ContextScope(RoboApplication app)
registerViewForInjection
public void registerViewForInjection(roboguice.inject.ViewMembersInjector<?> injector)
registerPreferenceForInjection
public void registerPreferenceForInjection(roboguice.inject.PreferenceMembersInjector<?> injector)
injectViews
public void injectViews()
injectPreferenceViews
public void injectPreferenceViews()
enter
public void enter(android.content.Context context)
exit
public void exit(android.content.Context context)
dispose
public void dispose(android.content.Context context)
scope
public <T> com.google.inject.Provider<T> scope(com.google.inject.Key<T> key,
com.google.inject.Provider<T> unscoped)
- Specified by:
scope
in interface com.google.inject.Scope
ensureContextStack
protected void ensureContextStack()
getScopedObjectMap
protected <T> Map<com.google.inject.Key<?>,WeakReference<Object>> getScopedObjectMap(com.google.inject.Key<T> key)
Copyright © 2011. All Rights Reserved.