|
||||||||||
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. |
com.google.inject.spi | Guice service provider interface |
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()
Returns all explicit bindings. |
Methods in com.google.inject with parameters of type Key | ||
---|---|---|
|
Binder.bind(Key<T> key)
See the EDSL examples at Binder . |
|
protected
|
AbstractModule.bind(Key<T> key)
|
|
|
Injector.getBinding(Key<T> key)
Returns the binding for the given injection key. |
|
|
Injector.getInstance(Key<T> key)
Returns the appropriate instance for the given injection key; equivalent to getProvider(key).get() . |
|
|
Injector.getProvider(Key<T> key)
Returns the provider used to obtain instances for the given injection key. |
|
|
Binder.getProvider(Key<T> key)
Returns the provider used to obtain instances for the given injection key. |
|
protected
|
AbstractModule.getProvider(Key<T> key)
|
|
protected void |
AbstractModule.requireBinding(Key<?> key)
Adds a dependency from this module to 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)
See the EDSL examples at Binder . |
ScopedBindingBuilder |
LinkedBindingBuilder.toProvider(Key<? extends Provider<? extends T>> providerKey)
See the EDSL examples at Binder . |
Uses of Key in com.google.inject.spi |
---|
Methods in com.google.inject.spi that return Key | |
---|---|
Key<T> |
ProviderLookup.getKey()
|
Key<T> |
Dependency.getKey()
Returns the key to the binding that satisfies this dependency. |
Methods in com.google.inject.spi with parameters of type Key | ||
---|---|---|
static
|
Dependency.get(Key<T> key)
Returns a new dependency that is not attached to an injection point. |
|
V |
DefaultBindingTargetVisitor.visitKey(Key<? extends T> key)
|
|
V |
BindingTargetVisitor.visitKey(Key<? extends T> key)
Visit a linked key binding. |
|
V |
DefaultBindingTargetVisitor.visitProviderBinding(Key<?> provided)
|
|
V |
BindingTargetVisitor.visitProviderBinding(Key<?> provided)
Visit a binding to a Provider that delegates to the binding for the
provided type. |
|
V |
DefaultBindingTargetVisitor.visitProviderKey(Key<? extends Provider<? extends T>> providerKey)
|
|
V |
BindingTargetVisitor.visitProviderKey(Key<? extends Provider<? extends T>> providerKey)
Visit a provider key binding. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |