Modifier and Type | Method and Description |
---|---|
LenskitBinding<T> |
exclude(java.lang.Class<?> exclude) |
LenskitBinding<T> |
shared() |
void |
toInstance(T instance)
Explicitly bind to an instance.
|
LenskitBinding<T> |
unqualified() |
LenskitBinding<T> |
unshared() |
LenskitBinding<T> |
withAnyQualifier() |
LenskitBinding<T> |
withQualifier(java.lang.annotation.Annotation annot) |
LenskitBinding<T> |
withQualifier(java.lang.Class<? extends java.lang.annotation.Annotation> qualifier) |
fixed, to, to, to, toNull, toNull, toProvider, toProvider, toSatisfaction
void toInstance(@Nullable T instance)
Explicitly bind to an instance.
instance
- The instance to bind to.LenskitBinding<T> withQualifier(@Nonnull java.lang.Class<? extends java.lang.annotation.Annotation> qualifier)
withQualifier
in interface Binding<T>
LenskitBinding<T> withQualifier(@Nonnull java.lang.annotation.Annotation annot)
withQualifier
in interface Binding<T>
LenskitBinding<T> withAnyQualifier()
withAnyQualifier
in interface Binding<T>
LenskitBinding<T> unqualified()
unqualified
in interface Binding<T>
LenskitBinding<T> exclude(@Nonnull java.lang.Class<?> exclude)
LenskitBinding<T> shared()
LenskitBinding<T> unshared()