/** Sets the binding to a copy with the specified annotation on the bound key */ protected BindingImpl<T> annotatedWithInternal(Annotation annotation) { checkNotNull(annotation, "annotation"); checkNotAnnotated(); return setBinding(binding.withKey(Key.get(this.binding.getKey().getTypeLiteral(), annotation))); }
/** Sets the binding to a copy with the specified annotation on the bound key */ protected BindingImpl<T> annotatedWithInternal(Class<? extends Annotation> annotationType) { checkNotNull(annotationType, "annotationType"); checkNotAnnotated(); return setBinding( binding.withKey(Key.get(this.binding.getKey().getTypeLiteral(), annotationType))); }
public void in(final Class<? extends Annotation> scopeAnnotation) { checkNotNull(scopeAnnotation, "scopeAnnotation"); checkNotScoped(); setBinding(getBinding().withScoping(Scoping.forAnnotation(scopeAnnotation))); }
public void asEagerSingleton() { checkNotScoped(); setBinding(getBinding().withScoping(Scoping.EAGER_SINGLETON)); }
public void in(final Scope scope) { checkNotNull(scope, "scope"); checkNotScoped(); setBinding(getBinding().withScoping(Scoping.forInstance(scope))); }
/** * Sets the binding to a copy with the specified annotation on the bound key */ protected BindingImpl<T> annotatedWithInternal(Annotation annotation) { checkNotNull(annotation, "annotation"); checkNotAnnotated(); return setBinding(binding.withKey( Key.get(this.binding.getKey().getTypeLiteral(), annotation))); }
/** Sets the binding to a copy with the specified annotation on the bound key */ protected BindingImpl<T> annotatedWithInternal(Class<? extends Annotation> annotationType) { checkNotNull(annotationType, "annotationType"); checkNotAnnotated(); return setBinding( binding.withKey(Key.get(this.binding.getKey().getTypeLiteral(), annotationType))); }
/** Sets the binding to a copy with the specified annotation on the bound key */ protected BindingImpl<T> annotatedWithInternal(Annotation annotation) { checkNotNull(annotation, "annotation"); checkNotAnnotated(); return setBinding(binding.withKey(Key.get(this.binding.getKey().getTypeLiteral(), annotation))); }
public void in(final Class<? extends Annotation> scopeAnnotation) { checkNotNull(scopeAnnotation, "scopeAnnotation"); checkNotScoped(); setBinding(getBinding().withScoping(Scoping.forAnnotation(scopeAnnotation))); }
public void in(final Scope scope) { checkNotNull(scope, "scope"); checkNotScoped(); setBinding(getBinding().withScoping(Scoping.forInstance(scope))); }
public void in(final Class<? extends Annotation> scopeAnnotation) { checkNotNull(scopeAnnotation, "scopeAnnotation"); checkNotScoped(); setBinding(getBinding().withScoping(Scoping.forAnnotation(scopeAnnotation))); }
/** Sets the binding to a copy with the specified annotation on the bound key */ protected BindingImpl<T> annotatedWithInternal(Class<? extends Annotation> annotationType) { checkNotNull(annotationType, "annotationType"); checkNotAnnotated(); return setBinding(binding.withKey( Key.get(this.binding.getKey().getTypeLiteral(), annotationType))); }
/** Sets the binding to a copy with the specified annotation on the bound key */ protected BindingImpl<T> annotatedWithInternal(Class<? extends Annotation> annotationType) { checkNotNull(annotationType, "annotationType"); checkNotAnnotated(); return setBinding(binding.withKey( Key.get(this.binding.getKey().getTypeLiteral(), annotationType))); }
/** Sets the binding to a copy with the specified annotation on the bound key */ protected BindingImpl<T> annotatedWithInternal(Annotation annotation) { checkNotNull(annotation, "annotation"); checkNotAnnotated(); return setBinding(binding.withKey( Key.get(this.binding.getKey().getTypeLiteral(), annotation))); }
/** Sets the binding to a copy with the specified annotation on the bound key */ protected BindingImpl<T> annotatedWithInternal(Annotation annotation) { checkNotNull(annotation, "annotation"); checkNotAnnotated(); return setBinding(binding.withKey( Key.get(this.binding.getKey().getTypeLiteral(), annotation))); }
/** Sets the binding to a copy with the specified annotation on the bound key */ protected BindingImpl<T> annotatedWithInternal(Annotation annotation) { checkNotNull(annotation, "annotation"); checkNotAnnotated(); return setBinding(binding.withKey( Key.get(this.binding.getKey().getTypeLiteral(), annotation))); }
public void in(final Scope scope) { checkNotNull(scope, "scope"); checkNotScoped(); setBinding(getBinding().withScoping(Scoping.forInstance(scope))); }
public void in(final Scope scope) { checkNotNull(scope, "scope"); checkNotScoped(); setBinding(getBinding().withScoping(Scoping.forInstance(scope))); }
public void in(final Class<? extends Annotation> scopeAnnotation) { checkNotNull(scopeAnnotation, "scopeAnnotation"); checkNotScoped(); setBinding(getBinding().withScoping(Scoping.forAnnotation(scopeAnnotation))); }
public void in(final Class<? extends Annotation> scopeAnnotation) { checkNotNull(scopeAnnotation, "scopeAnnotation"); checkNotScoped(); setBinding(getBinding().withScoping(Scoping.forAnnotation(scopeAnnotation))); }