public class ThrowingProviderBinder.SecondaryBinder<P extends CheckedProvider,T>
extends java.lang.Object
Constructor and Description |
---|
SecondaryBinder(java.lang.Class<P> interfaceType,
java.lang.reflect.Type valueType) |
Modifier and Type | Method and Description |
---|---|
ThrowingProviderBinder.SecondaryBinder<P,T> |
annotatedWith(java.lang.annotation.Annotation annotation) |
ThrowingProviderBinder.SecondaryBinder<P,T> |
annotatedWith(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType) |
ScopedBindingBuilder |
providing(java.lang.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(java.lang.Class<? extends P> targetType) |
ScopedBindingBuilder |
to(Key<? extends P> targetKey) |
ScopedBindingBuilder |
to(P target) |
public SecondaryBinder(java.lang.Class<P> interfaceType, java.lang.reflect.Type valueType)
public ThrowingProviderBinder.SecondaryBinder<P,T> annotatedWith(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
public ThrowingProviderBinder.SecondaryBinder<P,T> annotatedWith(java.lang.annotation.Annotation annotation)
public ThrowingProviderBinder.SecondaryBinder<P,T> scopeExceptions(boolean scopeExceptions)
scopeExceptions
- whether exceptions should be scoped.public ScopedBindingBuilder to(P target)
public ScopedBindingBuilder to(java.lang.Class<? extends P> targetType)
public ScopedBindingBuilder providing(java.lang.Class<? extends T> cxtorClass)
public ScopedBindingBuilder providing(TypeLiteral<? extends T> cxtorLiteral)
public ScopedBindingBuilder to(Key<? extends P> targetKey)