public abstract class AbstractContext extends Object implements Context
Context.| Constructor and Description |
|---|
AbstractContext() |
| Modifier and Type | Method and Description |
|---|---|
<T> Binding<T> |
bind(Class<? extends Annotation> qual,
Class<T> type)
Start a new binding for a qualified type.
|
<T> Binding<T> |
bindAny(Class<T> type)
Start a new binding for a type irrespective of qualifier.
|
Context |
in(Annotation qualifier,
Class<?> type)
Deprecated.
|
Context |
in(Class<?> type)
Deprecated.
|
Context |
in(Class<? extends Annotation> qualifier,
Class<?> type)
Deprecated.
|
public <T> Binding<T> bind(Class<? extends Annotation> qual, Class<T> type)
Contextbind(type).withQualifier(qual).bind in interface ContextT - The type to bind.qual - The type's qualifier.type - The type to bind.Binding.withQualifier(Class)public <T> Binding<T> bindAny(Class<T> type)
Contextbind(type).withAnyQualifier().@Deprecated public Context in(Class<?> type)
@Deprecated public Context in(@Nullable Class<? extends Annotation> qualifier, Class<?> type)
@Deprecated public Context in(@Nullable Annotation qualifier, Class<?> type)
Copyright © 2016 GroupLens Research. All rights reserved.