@Override public BindingImpl<T> withKey(Key<T> key) { return new UntargettedBindingImpl<T>(getSource(), key, getScoping()); }
@Override public void applyTo(Binder binder) { getScoping().applyTo(binder.withSource(getSource()).bind(getKey())); }
@Override public BindingImpl<T> withScoping(Scoping scoping) { return new UntargettedBindingImpl<T>(getSource(), getKey(), scoping); }
@Override public int hashCode() { return Objects.hashCode(getKey(), getScoping()); } }
protected <T> UntargettedBindingImpl<T> invalidBinding( InjectorImpl injector, Key<T> key, Object source) { return new UntargettedBindingImpl<T>(injector, key, source); }
@Override public BindingImpl<T> withScoping(Scoping scoping) { return new UntargettedBindingImpl<T>(getSource(), getKey(), scoping); }
@Override public boolean equals(Object obj) { if (obj instanceof UntargettedBindingImpl) { UntargettedBindingImpl<?> o = (UntargettedBindingImpl<?>) obj; return getKey().equals(o.getKey()) && getScoping().equals(o.getScoping()); } else { return false; } }
public AbstractBindingBuilder(Binder binder, List<Element> elements, Object source, Key<T> key) { this.binder = binder; this.elements = elements; this.position = elements.size(); this.binding = new UntargettedBindingImpl<>(source, key, Scoping.UNSCOPED); elements.add(position, this.binding); }
@Override public void applyTo(Binder binder) { getScoping().applyTo(binder.withSource(getSource()).bind(getKey())); }
@Override public BindingImpl<T> withKey(Key<T> key) { return new UntargettedBindingImpl<T>(getSource(), key, getScoping()); }
@Override public BindingImpl<T> withScoping(Scoping scoping) { return new UntargettedBindingImpl<T>(getSource(), getKey(), scoping); }
@Override public int hashCode() { return Objects.hashCode(getKey(), getScoping()); } }
protected <T> UntargettedBindingImpl<T> invalidBinding( InjectorImpl injector, Key<T> key, Object source) { return new UntargettedBindingImpl<T>(injector, key, source); }
@Override public void applyTo(Binder binder) { getScoping().applyTo(binder.withSource(getSource()).bind(getKey())); }
@Override public BindingImpl<T> withKey(Key<T> key) { return new UntargettedBindingImpl<T>(getSource(), key, getScoping()); }
public BindingImpl<T> withScoping(Scoping scoping) { return new UntargettedBindingImpl<T>(getSource(), getKey(), scoping); }
@Override public int hashCode() { return Objects.hashCode(getKey(), getScoping()); } }