|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Key | |
---|---|
com.google.inject | Google Guice (pronounced "juice") is an ultra-lightweight dependency injection framework. |
com.google.inject.binder | Interfaces which make up Binder 's
expression language. |
Uses of Key in com.google.inject |
---|
Methods in com.google.inject that return Key | ||
---|---|---|
static
|
Key.get(Class<T> type)
Gets a key for an injection type. |
|
static
|
Key.get(Class<T> type,
Annotation annotation)
Gets a key for an injection type and an annotation. |
|
static
|
Key.get(Class<T> type,
Class<? extends Annotation> annotationType)
Gets a key for an injection type and an annotation type. |
|
static Key<?> |
Key.get(Type type)
Gets a key for an injection type. |
|
static Key<?> |
Key.get(Type type,
Annotation annotation)
Gets a key for an injection type and an annotation. |
|
static Key<?> |
Key.get(Type type,
Class<? extends Annotation> annotationType)
Gets a key for an injection type and an annotation type. |
|
static
|
Key.get(TypeLiteral<T> typeLiteral)
Gets a key for an injection type. |
|
static
|
Key.get(TypeLiteral<T> typeLiteral,
Annotation annotation)
Gets a key for an injection type and an annotation. |
|
static
|
Key.get(TypeLiteral<T> typeLiteral,
Class<? extends Annotation> annotationType)
Gets a key for an injection type and an annotation type. |
|
Key<T> |
Binding.getKey()
Returns the key for this binding. |
Methods in com.google.inject that return types with arguments of type Key | |
---|---|
Map<Key<?>,Binding<?>> |
Injector.getBindings()
Gets all explicit bindings. |
Methods in com.google.inject with parameters of type Key | ||
---|---|---|
|
Binder.bind(Key<T> key)
Creates a binding to a key. |
|
protected
|
AbstractModule.bind(Key<T> key)
|
|
|
Injector.getBinding(Key<T> key)
Gets a binding for the given key. |
|
|
Injector.getInstance(Key<T> key)
Gets an instance bound to the given key; equivalent to getProvider(key).get() . |
|
|
Injector.getProvider(Key<T> key)
Gets the provider bound to the given key. |
|
|
Scope.scope(Key<T> key,
Provider<T> unscoped)
Scopes a provider. |
Uses of Key in com.google.inject.binder |
---|
Methods in com.google.inject.binder with parameters of type Key | |
---|---|
ScopedBindingBuilder |
LinkedBindingBuilder.to(Key<? extends T> targetKey)
Binds to another binding with the specified key. |
ScopedBindingBuilder |
LinkedBindingBuilder.toProvider(Key<? extends Provider<? extends T>> providerKey)
Binds to instances from the provider bound to the given key. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |