|
||||||||||
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.servlet | Servlet API scopes, bindings and registration; this extension requires guice-servlet-2.0.jar . |
com.google.inject.spi | Guice service provider interface |
com.google.inject.throwingproviders | Extension for injecting objects that may throw at provision time; this extension requires guice-throwingproviders-2.0.jar . |
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 | ||
---|---|---|
protected
|
PrivateModule.bind(Key<T> key)
|
|
|
Binder.bind(Key<T> key)
See the EDSL examples at Binder . |
|
protected
|
AbstractModule.bind(Key<T> key)
|
|
void |
PrivateBinder.expose(Key<?> key)
Makes the binding for key available to the enclosing environment |
|
protected
|
PrivateModule.expose(Key<T> key)
Makes the binding for key available to other modules and the injector. |
|
|
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() . |
|
protected
|
PrivateModule.getProvider(Key<T> key)
|
|
|
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 |
PrivateModule.requireBinding(Key<?> key)
Instructs Guice to require a binding to the given 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.servlet |
---|
Methods in com.google.inject.servlet with parameters of type Key | |
---|---|
void |
ServletModule.FilterKeyBindingBuilder.through(Key<? extends Filter> filterKey)
|
void |
ServletModule.FilterKeyBindingBuilder.through(Key<? extends Filter> dummyFilterClass,
Map<String,String> contextParams)
|
void |
ServletModule.ServletKeyBindingBuilder.with(Key<? extends HttpServlet> servletKey)
|
void |
ServletModule.ServletKeyBindingBuilder.with(Key<? extends HttpServlet> servletKey,
Map<String,String> contextParams)
|
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. |
Key<? extends T> |
LinkedKeyBinding.getLinkedKey()
Returns the linked key used to resolve injections. |
Key<?> |
ProviderBinding.getProvidedKey()
Returns the key whose binding is used to provide instances . |
Key<? extends Provider<? extends T>> |
ProviderKeyBinding.getProviderKey()
Returns the key used to resolve the provider's binding. |
Key<String> |
ConvertedConstantBinding.getSourceKey()
Returns the key for the source binding. |
Methods in com.google.inject.spi that return types with arguments of type Key | |
---|---|
Set<Key<?>> |
PrivateElements.getExposedKeys()
Returns the unique exposed keys for these private elements. |
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. |
|
Object |
PrivateElements.getExposedSource(Key<?> key)
Returns an arbitrary object containing information about the "place" where this key was exposed. |
|
|
TypeEncounter.getProvider(Key<T> key)
Returns the provider used to obtain instances for the given injection key. |
Constructors in com.google.inject.spi with parameters of type Key | |
---|---|
ProviderLookup(Object source,
Key<T> key)
|
Uses of Key in com.google.inject.throwingproviders |
---|
Methods in com.google.inject.throwingproviders with parameters of type Key | |
---|---|
ScopedBindingBuilder |
ThrowingProviderBinder.SecondaryBinder.to(Key<? extends P> targetKey)
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |