public class ThrowingProviderBinder.SecondaryBinder<P extends CheckedProvider,T> extends Object
Constructor and Description |
---|
ThrowingProviderBinder.SecondaryBinder(Class<P> interfaceType,
Type valueType) |
Modifier and Type | Method and Description |
---|---|
ThrowingProviderBinder.SecondaryBinder<P,T> |
annotatedWith(Annotation annotation) |
ThrowingProviderBinder.SecondaryBinder<P,T> |
annotatedWith(Class<? extends Annotation> annotationType) |
ScopedBindingBuilder |
providing(Class<? extends T> cxtorClass) |
ScopedBindingBuilder |
providing(TypeLiteral<? extends T> cxtorLiteral) |
ThrowingProviderBinder.SecondaryBinder<P,T> |
scopeExceptions(boolean scopeExceptions)
Determines if exceptions should be scoped.
|
ScopedBindingBuilder |
to(Class<? extends P> targetType) |
ScopedBindingBuilder |
to(Key<? extends P> targetKey) |
ScopedBindingBuilder |
to(P target) |
public ThrowingProviderBinder.SecondaryBinder<P,T> annotatedWith(Class<? extends Annotation> annotationType)
public ThrowingProviderBinder.SecondaryBinder<P,T> annotatedWith(Annotation annotation)
public ThrowingProviderBinder.SecondaryBinder<P,T> scopeExceptions(boolean scopeExceptions)
scopeExceptions
- whether exceptions should be scoped.public ScopedBindingBuilder to(P target)
public ScopedBindingBuilder to(Class<? extends P> targetType)
public ScopedBindingBuilder providing(Class<? extends T> cxtorClass)
public ScopedBindingBuilder providing(TypeLiteral<? extends T> cxtorLiteral)
public ScopedBindingBuilder to(Key<? extends P> targetKey)
Copyright © 2006–2018 Google, Inc.. All rights reserved.