Package | Description |
---|---|
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.jndi |
JNDI integration
|
Modifier and Type | Method and Description |
---|---|
Provider<T> |
Binding.getProvider()
Returns the provider guice uses to fulfill requests for this binding.
|
<T> Provider<T> |
Injector.getProvider(Class<T> type)
Gets the provider bound to the given type.
|
<T> Provider<T> |
Injector.getProvider(Key<T> key)
Gets the provider bound to the given key.
|
<T> Provider<T> |
Scope.scope(Key<T> key,
Provider<T> unscoped)
Scopes a provider.
|
Modifier and Type | Method and Description |
---|---|
<T> Provider<T> |
Scope.scope(Key<T> key,
Provider<T> unscoped)
Scopes a provider.
|
Modifier and Type | Method and Description |
---|---|
ScopedBindingBuilder |
LinkedBindingBuilder.toProvider(Provider<? extends T> provider)
Binds to instances generated by the given Provider.
|
Modifier and Type | Method and Description |
---|---|
ScopedBindingBuilder |
LinkedBindingBuilder.toProvider(Class<? extends Provider<? extends T>> providerType)
Binds to instances from the provider bound to the given provider type.
|
ScopedBindingBuilder |
LinkedBindingBuilder.toProvider(Key<? extends Provider<? extends T>> providerKey)
Binds to instances from the provider bound to the given key.
|
Modifier and Type | Method and Description |
---|---|
static <T> Provider<T> |
JndiIntegration.fromJndi(Class<T> type,
String name)
Creates a provider which looks up objects in JNDI using the given name.
|
Copyright © 2013. All Rights Reserved.