@Override public Map<Key<?>, Binding<?>> getAllBindings() { synchronized (state.lock()) { return new ImmutableMap.Builder<Key<?>, Binding<?>>() .putAll(state.getExplicitBindingsThisLevel()) .putAll(jitBindings) .build(); } }
InheritingState(State parent) { this.parent = checkNotNull(parent, "parent"); this.lock = (parent == State.NONE) ? this : parent.lock(); this.blacklistedKeys = new WeakKeySet(lock); }
/** Synchronize on this before calling {@link #build}. */ Object lock() { return getState().lock(); }
(Collection) injector.state.getExplicitBindingsThisLevel().values(); candidateBindings.addAll(bindingsAtThisLevel); synchronized (injector.state.lock()) {
synchronized (state.lock()) {
return explicitBinding; synchronized (state.lock()) {
/** Synchronize on this before calling {@link #build}. */ Object lock() { return getState().lock(); }
InheritingState(State parent) { this.parent = checkNotNull(parent, "parent"); this.lock = (parent == State.NONE) ? this : parent.lock(); this.blacklistedKeys = new WeakKeySet(lock); }
@Override public Map<Key<?>, Binding<?>> getAllBindings() { synchronized (state.lock()) { return new ImmutableMap.Builder<Key<?>, Binding<?>>() .putAll(state.getExplicitBindingsThisLevel()) .putAll(jitBindings) .build(); } }
InheritingState(State parent) { this.parent = checkNotNull(parent, "parent"); this.lock = (parent == State.NONE) ? this : parent.lock(); this.blacklistedKeys = new WeakKeySet(lock); }
InheritingState(State parent) { this.parent = checkNotNull(parent, "parent"); this.lock = (parent == State.NONE) ? this : parent.lock(); }
@Override public Map<Key<?>, Binding<?>> getAllBindings() { synchronized (state.lock()) { return new ImmutableMap.Builder<Key<?>, Binding<?>>() .putAll(state.getExplicitBindingsThisLevel()) .putAll(jitBindings) .build(); } }
InheritingState(State parent) { this.parent = checkNotNull(parent, "parent"); this.lock = (parent == State.NONE) ? this : parent.lock(); }
InheritingState(State parent) { this.parent = checkNotNull(parent, "parent"); this.lock = (parent == State.NONE) ? this : parent.lock(); this.blacklistedKeys = new WeakKeySet(lock); }
/** * Synchronize on this before calling {@link #build}. */ Object lock() { return getState().lock(); }
public Map<Key<?>, Binding<?>> getAllBindings() { synchronized (state.lock()) { return new ImmutableMap.Builder<Key<?>, Binding<?>>() .putAll(state.getExplicitBindingsThisLevel()) .putAll(jitBindings) .build(); } }
/** Synchronize on this before calling {@link #build}. */ Object lock() { return getState().lock(); }
public Map<Key<?>, Binding<?>> getAllBindings() { synchronized (state.lock()) { return new ImmutableMap.Builder<Key<?>, Binding<?>>() .putAll(state.getExplicitBindingsThisLevel()) .putAll(jitBindings) .build(); } }
public Map<Key<?>, Binding<?>> getAllBindings() { synchronized (state.lock()) { return new ImmutableMap.Builder<Key<?>, Binding<?>>() .putAll(state.getExplicitBindingsThisLevel()) .putAll(jitBindings) .build(); } }
public Map<Key<?>, Binding<?>> getAllBindings() { synchronized (state.lock()) { return new ImmutableMap.Builder<Key<?>, Binding<?>>() .putAll(state.getExplicitBindingsThisLevel()) .putAll(jitBindings) .build(); } }