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 booleanScopes.isScoped(Binding<?> binding, Scope scope, Class<? extends Annotation> scopeAnnotation) Returns true ifbindinghas the given scope.static booleanScopes.isSingleton(Binding<?> binding) Returns true ifbindingis singleton-scoped.Method parameters in com.google.inject with type arguments of type BindingModifier and TypeMethodDescriptionprotected voidAbstractModule.bindListener(Matcher<? super Binding<?>> bindingMatcher, ProvisionListener... listener) voidBinder.bindListener(Matcher<? super Binding<?>> bindingMatcher, ProvisionListener... listeners) Registers listeners for provisioned objects.protected voidPrivateModule.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 TypeInterfaceDescriptioninterfaceA binding to the constructor of a concrete class.interfaceA binding created from converting a bound instance to a new type.interfaceA binding to a key exposed from an enclosed private environment.interfaceA binding to a single instance.interfaceA binding to a linked key.interfaceProviderBinding<T extends Provider<?>>A binding to aProviderthat delegates to the binding for the provided type.interfaceA binding to a provider instance.interfaceA binding to a provider key.interfaceAn 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