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)
com.google.inject.binder.ScopedBindingBuilder
providing(com.google.inject.TypeLiteral<? extends T> cxtorLiteral)
com.google.inject.binder.ScopedBindingBuilder
providing(Class<? extends T> cxtorClass)
ThrowingProviderBinder.SecondaryBinder<P,T>
scopeExceptions(boolean scopeExceptions)
Determines if exceptions should be scoped.com.google.inject.binder.ScopedBindingBuilder
to(com.google.inject.Key<? extends P> targetKey)
com.google.inject.binder.ScopedBindingBuilder
to(Class<? extends P> targetType)
com.google.inject.binder.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 com.google.inject.binder.ScopedBindingBuilder to(P target)
-
providing
public com.google.inject.binder.ScopedBindingBuilder providing(Class<? extends T> cxtorClass)
- Since:
- 4.0
-
providing
public com.google.inject.binder.ScopedBindingBuilder providing(com.google.inject.TypeLiteral<? extends T> cxtorLiteral)
- Since:
- 4.0
-
to
public com.google.inject.binder.ScopedBindingBuilder to(com.google.inject.Key<? extends P> targetKey)
-
-