@Override public void injectMembers(Object instance) { //System.out.println("in injectMembers"); synchronized (ContextScope.class) { scope.enter(context, scopedObjects); try { delegate.injectMembers(instance); } finally { scope.exit(context); } } }
@Override public <T> T getInstance(Key<T> key) { //System.out.println("in getInstance"); synchronized (ContextScope.class) { scope.enter(context, scopedObjects); try { return delegate.getInstance(key); } finally { scope.exit(context); } } }
@Override public <T> T getInstance(Class<T> type) { //System.out.println("in getInstance"); synchronized (ContextScope.class) { scope.enter(context, scopedObjects); try { return delegate.getInstance(type); } finally { scope.exit(context); } } }
@Override public Map<Key<?>, Binding<?>> getAllBindings() { synchronized (ContextScope.class) { scope.enter(context, scopedObjects); try { return delegate.getAllBindings(); } finally { scope.exit(context); } } }
@Override public <T> Binding<T> getBinding(Class<T> type) { //System.out.println("in getBinding"); synchronized (ContextScope.class) { scope.enter(context, scopedObjects); try { return delegate.getBinding(type); } finally { scope.exit(context); } } }
@Override public Map<Key<?>, Binding<?>> getBindings() { //System.out.println("in getBindings"); synchronized (ContextScope.class) { scope.enter(context, scopedObjects); try { return delegate.getBindings(); } finally { scope.exit(context); } } }
@Override public Injector createChildInjector(Module... modules) { synchronized (ContextScope.class) { scope.enter(context, scopedObjects); try { return delegate.createChildInjector(modules); } finally { scope.exit(context); } } }
@Override public <T> Binding<T> getBinding(Key<T> key) { //System.out.println("in getBinding"); synchronized (ContextScope.class) { scope.enter(context, scopedObjects); try { return delegate.getBinding(key); } finally { scope.exit(context); } } }
@Override public <T> Binding<T> getExistingBinding(Key<T> key) { //System.out.println("in getExistingBindings"); synchronized (ContextScope.class) { scope.enter(context, scopedObjects); try { return delegate.getExistingBinding(key); } finally { scope.exit(context); } } }
@Override public <T> MembersInjector<T> getMembersInjector(TypeLiteral<T> typeLiteral) { //System.out.println("in getMembersInjector"); synchronized (ContextScope.class) { scope.enter(context, scopedObjects); try { return delegate.getMembersInjector(typeLiteral); } finally { scope.exit(context); } } }
@Override public <T> Provider<T> getProvider(Class<T> type) { //System.out.println("in getProvider"); synchronized (ContextScope.class) { scope.enter(context, scopedObjects); try { return delegate.getProvider(type); } finally { scope.exit(context); } } }
@Override public Set<TypeConverterBinding> getTypeConverterBindings() { synchronized (ContextScope.class) { scope.enter(context, scopedObjects); try { return delegate.getTypeConverterBindings(); } finally { scope.exit(context); } } }
@Override public <T> MembersInjector<T> getMembersInjector(Class<T> type) { //System.out.println("in getMembersInjector"); synchronized (ContextScope.class) { scope.enter(context, scopedObjects); try { return delegate.getMembersInjector(type); } finally { scope.exit(context); } } }
@Override public Injector getParent() { synchronized (ContextScope.class) { scope.enter(context, scopedObjects); try { return delegate.getParent(); } finally { scope.exit(context); } } }
@Override public Map<Class<? extends Annotation>, Scope> getScopeBindings() { //System.out.println("in getScopeBindings"); synchronized (ContextScope.class) { scope.enter(context, scopedObjects); try { return delegate.getScopeBindings(); } finally { scope.exit(context); } } }
@Override public Injector createChildInjector(Iterable<? extends Module> modules) { synchronized (ContextScope.class) { scope.enter(context, scopedObjects); try { return delegate.createChildInjector(modules); } finally { scope.exit(context); } } }
@Override public <T> List<Binding<T>> findBindingsByType(TypeLiteral<T> type) { synchronized (ContextScope.class) { scope.enter(context, scopedObjects); try { return delegate.findBindingsByType(type); } finally { scope.exit(context); } } }
@Override public <T> Provider<T> getProvider(Key<T> key) { //System.out.println("in getProvider"); synchronized (ContextScope.class) { scope.enter(context, scopedObjects); try { return delegate.getProvider(key); } finally { scope.exit(context); } } }
@Override public void setPreferenceScreen(PreferenceScreen preferenceScreen) { super.setPreferenceScreen(preferenceScreen); final ContextScope scope = RoboGuice.getInjector(this).getInstance(ContextScope.class); synchronized (ContextScope.class) { scope.enter(this); try { preferenceListener.injectPreferenceViews(); } finally { scope.exit(this); } } }
@Override public void setPreferenceScreen(PreferenceScreen preferenceScreen) { super.setPreferenceScreen(preferenceScreen); final ContextScope scope = RoboGuice.getInjector(this).getInstance(ContextScope.class); synchronized (ContextScope.class) { scope.enter(this); try { preferenceListener.injectPreferenceViews(); } finally { scope.exit(this); } } }