Uses of Interface
com.google.inject.Binding
Packages that use Binding
Package
Description
Google Guice (pronounced "juice") is an ultra-lightweight dependency injection framework.
Guice (sounds like "juice")
Extension for binding multiple instances in a collection; this extension requires
guice-multibindings.jar
.Guice service provider interface
-
Uses of Binding in com.google.inject
Methods in com.google.inject that return BindingModifier and TypeMethodDescription<T> Binding
<T> Injector.getBinding
(Key<T> key) Returns the binding for the given injection key.<T> Binding
<T> Injector.getBinding
(Class<T> type) Returns the binding for the given type.<T> Binding
<T> Injector.getExistingBinding
(Key<T> key) Returns the binding if it already exists, or null if does not exist.Methods in com.google.inject that return types with arguments of type BindingModifier and TypeMethodDescriptionInjector.findBindingsByType
(TypeLiteral<T> type) Returns all explicit bindings fortype
.Injector.getAllBindings()
Returns a snapshot of this injector's bindings, both explicit and just-in-time.Injector.getBindings()
Returns this injector's explicit bindings.Methods in com.google.inject with parameters of type BindingModifier and TypeMethodDescriptionstatic boolean
Scopes.isScoped
(Binding<?> binding, Scope scope, Class<? extends Annotation> scopeAnnotation) Returns true ifbinding
has the given scope.static boolean
Scopes.isSingleton
(Binding<?> binding) Returns true ifbinding
is singleton-scoped.Method parameters in com.google.inject with type arguments of type BindingModifier and TypeMethodDescriptionprotected void
AbstractModule.bindListener
(Matcher<? super Binding<?>> bindingMatcher, ProvisionListener... listener) void
Binder.bindListener
(Matcher<? super Binding<?>> bindingMatcher, ProvisionListener... listeners) Registers listeners for provisioned objects.protected void
PrivateModule.bindListener
(Matcher<? super Binding<?>> bindingMatcher, ProvisionListener... listeners) -
Uses of Binding in com.google.inject.internal
Classes in com.google.inject.internal that implement BindingMethod parameters in com.google.inject.internal with type arguments of type BindingModifier and TypeMethodDescription<K,
V> Errors Errors.duplicateMapKey
(Key<Map<K, V>> mapKey, com.google.common.collect.Multimap<K, Binding<V>> duplicates) -
Uses of Binding in com.google.inject.multibindings
Methods in com.google.inject.multibindings that return BindingModifier and TypeMethodDescriptionBinding
<?> OptionalBinderBinding.getActualBinding()
Returns the actual binding (set byOptionalBinder.setBinding()
) or null if not set.Binding
<?> OptionalBinderBinding.getDefaultBinding()
Returns the default binding (set byOptionalBinder.setDefault()
) if one exists or null if no default binding is set.Methods in com.google.inject.multibindings that return types with arguments of type BindingModifier and TypeMethodDescriptionMultibinderBinding.getElements()
Returns all bindings that make up the set.MapBinderBinding.getEntries()
Returns all entries in the Map.MapBinderBinding.getEntries
(Iterable<? extends Element> elements) Similar toMapBinderBinding.getEntries()
, but can be used on a MapBinderBinding retrieved fromElements.getElements(com.google.inject.Module...)
. -
Uses of Binding in com.google.inject.spi
Subinterfaces of Binding in com.google.inject.spiModifier and TypeInterfaceDescriptioninterface
A binding to the constructor of a concrete clss.interface
A binding created from converting a bound instance to a new type.interface
A binding to a key exposed from an enclosed private environment.interface
A binding to a single instance.interface
A binding to a linked key.interface
ProviderBinding<T extends Provider<?>>
A binding to aProvider
that delegates to the binding for the provided type.interface
A binding to a provider instance.interface
A binding to a provider key.interface
An untargetted binding.Methods in com.google.inject.spi that return BindingModifier and TypeMethodDescriptionProvisionListener.ProvisionInvocation.getBinding()
Returns the Binding this is provisioning.Methods in com.google.inject.spi that return types with arguments of type BindingModifier and TypeMethodDescriptionProvisionListenerBinding.getBindingMatcher()
Returns the binding matcher which chooses which bindings the listener should be notified of.Methods in com.google.inject.spi with parameters of type Binding