Class ThrowingProviderBinder.SecondaryBinder<P extends CheckedProvider,T>
- java.lang.Object
-
- com.google.inject.throwingproviders.ThrowingProviderBinder.SecondaryBinder<P,T>
-
- Enclosing class:
- ThrowingProviderBinder
public class ThrowingProviderBinder.SecondaryBinder<P extends CheckedProvider,T> extends Object
-
-
Constructor Summary
Constructors Constructor Description SecondaryBinder(Class<P> interfaceType, Type valueType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ThrowingProviderBinder.SecondaryBinder<P,T>
annotatedWith(Annotation annotation)
ThrowingProviderBinder.SecondaryBinder<P,T>
annotatedWith(Class<? extends Annotation> annotationType)
ScopedBindingBuilder
providing(TypeLiteral<? extends T> cxtorLiteral)
ScopedBindingBuilder
providing(Class<? extends T> cxtorClass)
ThrowingProviderBinder.SecondaryBinder<P,T>
scopeExceptions(boolean scopeExceptions)
Determines if exceptions should be scoped.ScopedBindingBuilder
to(Key<? extends P> targetKey)
ScopedBindingBuilder
to(Class<? extends P> targetType)
ScopedBindingBuilder
to(P target)
-
-
-
Method Detail
-
annotatedWith
public ThrowingProviderBinder.SecondaryBinder<P,T> annotatedWith(Class<? extends Annotation> annotationType)
-
annotatedWith
public ThrowingProviderBinder.SecondaryBinder<P,T> annotatedWith(Annotation annotation)
-
scopeExceptions
public ThrowingProviderBinder.SecondaryBinder<P,T> scopeExceptions(boolean scopeExceptions)
Determines if exceptions should be scoped. By default exceptions are scoped.- Parameters:
scopeExceptions
- whether exceptions should be scoped.- Since:
- 4.0
-
to
public ScopedBindingBuilder to(P target)
-
to
public ScopedBindingBuilder to(Class<? extends P> targetType)
-
providing
public ScopedBindingBuilder providing(Class<? extends T> cxtorClass)
- Since:
- 4.0
-
providing
public ScopedBindingBuilder providing(TypeLiteral<? extends T> cxtorLiteral)
- Since:
- 4.0
-
to
public ScopedBindingBuilder to(Key<? extends P> targetKey)
-
-