Uses of Interface
com.google.inject.Binder
-
Packages that use Binder Package Description com.google.inject Google Guice (pronounced "juice") is an ultra-lightweight dependency injection framework.com.google.inject.multibindings Extension for binding multiple instances in a collection; this extension requiresguice-multibindings.jar.com.google.inject.name Support for binding to string-based names.com.google.inject.spi Guice service provider interfacecom.google.inject.spring Spring integration; this extension requiresguice-spring.jar.com.google.inject.testing.fieldbinder com.google.inject.throwingproviders Extension for injecting objects that may throw at provision time; this extension requiresguice-throwingproviders.jar. -
-
Uses of Binder in com.google.inject
Subinterfaces of Binder in com.google.inject Modifier and Type Interface Description interfacePrivateBinderReturns a binder whose configuration information is hidden from its environment by default.Methods in com.google.inject that return Binder Modifier and Type Method Description protected BinderAbstractModule. binder()Gets direct access to the underlyingBinder.BinderBinder. skipSources(Class<?>... classesToSkip)Returns a binder that skipsclassesToSkipwhen identify the calling code.BinderBinder. withSource(Object source)Returns a binder that usessourceas the reference location for configuration errors.Methods in com.google.inject with parameters of type Binder Modifier and Type Method Description voidAbstractModule. configure(Binder builder)voidModule. configure(Binder binder)Contributes bindings and other configurations for this module tobinder.voidPrivateModule. configure(Binder binder) -
Uses of Binder in com.google.inject.multibindings
Methods in com.google.inject.multibindings with parameters of type Binder Modifier and Type Method Description static <K,V>
MapBinder<K,V>MapBinder. newMapBinder(Binder binder, TypeLiteral<K> keyType, TypeLiteral<V> valueType)Returns a new mapbinder that collects entries ofkeyType/valueTypein aMapthat is itself bound with no binding annotation.static <K,V>
MapBinder<K,V>MapBinder. newMapBinder(Binder binder, TypeLiteral<K> keyType, TypeLiteral<V> valueType, Annotation annotation)Returns a new mapbinder that collects entries ofkeyType/valueTypein aMapthat is itself bound withannotation.static <K,V>
MapBinder<K,V>MapBinder. newMapBinder(Binder binder, TypeLiteral<K> keyType, TypeLiteral<V> valueType, Class<? extends Annotation> annotationType)Returns a new mapbinder that collects entries ofkeyType/valueTypein aMapthat is itself bound withannotationType.static <K,V>
MapBinder<K,V>MapBinder. newMapBinder(Binder binder, Class<K> keyType, Class<V> valueType)Returns a new mapbinder that collects entries ofkeyType/valueTypein aMapthat is itself bound with no binding annotation.static <K,V>
MapBinder<K,V>MapBinder. newMapBinder(Binder binder, Class<K> keyType, Class<V> valueType, Annotation annotation)Returns a new mapbinder that collects entries ofkeyType/valueTypein aMapthat is itself bound withannotation.static <K,V>
MapBinder<K,V>MapBinder. newMapBinder(Binder binder, Class<K> keyType, Class<V> valueType, Class<? extends Annotation> annotationType)Returns a new mapbinder that collects entries ofkeyType/valueTypein aMapthat is itself bound withannotationType.static <T> OptionalBinder<T>OptionalBinder. newOptionalBinder(Binder binder, Key<T> type)static <T> OptionalBinder<T>OptionalBinder. newOptionalBinder(Binder binder, TypeLiteral<T> type)static <T> OptionalBinder<T>OptionalBinder. newOptionalBinder(Binder binder, Class<T> type)static <T> Multibinder<T>Multibinder. newSetBinder(Binder binder, Key<T> key)Returns a new multibinder that collects instances of the key's type in aSetthat is itself bound with the annotation (if any) of the key.static <T> Multibinder<T>Multibinder. newSetBinder(Binder binder, TypeLiteral<T> type)Returns a new multibinder that collects instances oftypein aSetthat is itself bound with no binding annotation.static <T> Multibinder<T>Multibinder. newSetBinder(Binder binder, TypeLiteral<T> type, Annotation annotation)Returns a new multibinder that collects instances oftypein aSetthat is itself bound withannotation.static <T> Multibinder<T>Multibinder. newSetBinder(Binder binder, TypeLiteral<T> type, Class<? extends Annotation> annotationType)Returns a new multibinder that collects instances oftypein aSetthat is itself bound withannotationType.static <T> Multibinder<T>Multibinder. newSetBinder(Binder binder, Class<T> type)Returns a new multibinder that collects instances oftypein aSetthat is itself bound with no binding annotation.static <T> Multibinder<T>Multibinder. newSetBinder(Binder binder, Class<T> type, Annotation annotation)Returns a new multibinder that collects instances oftypein aSetthat is itself bound withannotation.static <T> Multibinder<T>Multibinder. newSetBinder(Binder binder, Class<T> type, Class<? extends Annotation> annotationType)Returns a new multibinder that collects instances oftypein aSetthat is itself bound withannotationType. -
Uses of Binder in com.google.inject.name
Methods in com.google.inject.name with parameters of type Binder Modifier and Type Method Description static voidNames. bindProperties(Binder binder, Map<String,String> properties)Creates a constant binding to@Named(key)for each entry inproperties.static voidNames. bindProperties(Binder binder, Properties properties)Creates a constant binding to@Named(key)for each property. -
Uses of Binder in com.google.inject.spi
Methods in com.google.inject.spi that return Binder Modifier and Type Method Description static BinderElements. withTrustedSource(com.google.inject.internal.GuiceInternal guiceInternal, Binder binder, Object source)Internal version of Binder.withSource for establishing a trusted ElementSource chain for source-restricting bindings that are re-written usingElement.applyTo(com.google.inject.Binder).Methods in com.google.inject.spi with parameters of type Binder Modifier and Type Method Description voidDisableCircularProxiesOption. applyTo(Binder binder)voidElement. applyTo(Binder binder)Writes this module element to the given binder (optional operation).voidExposedBinding. applyTo(Binder binder)Unsupported.voidInjectionRequest. applyTo(Binder binder)voidInterceptorBinding. applyTo(Binder binder)voidMembersInjectorLookup. applyTo(Binder binder)voidMessage. applyTo(Binder binder)voidModuleAnnotatedMethodScannerBinding. applyTo(Binder binder)voidProviderLookup. applyTo(Binder binder)voidProvisionListenerBinding. applyTo(Binder binder)voidRequireAtInjectOnConstructorsOption. applyTo(Binder binder)voidRequireExactBindingAnnotationsOption. applyTo(Binder binder)voidRequireExplicitBindingsOption. applyTo(Binder binder)voidScopeBinding. applyTo(Binder binder)voidStaticInjectionRequest. applyTo(Binder binder)voidTypeConverterBinding. applyTo(Binder binder)voidTypeListenerBinding. applyTo(Binder binder)abstract <T> Key<T>ModuleAnnotatedMethodScanner. prepareMethod(Binder binder, Annotation annotation, Key<T> key, InjectionPoint injectionPoint)Prepares a method for binding.static BinderElements. withTrustedSource(com.google.inject.internal.GuiceInternal guiceInternal, Binder binder, Object source)Internal version of Binder.withSource for establishing a trusted ElementSource chain for source-restricting bindings that are re-written usingElement.applyTo(com.google.inject.Binder). -
Uses of Binder in com.google.inject.spring
Methods in com.google.inject.spring with parameters of type Binder Modifier and Type Method Description static voidSpringIntegration. bindAll(Binder binder, org.springframework.beans.factory.ListableBeanFactory beanFactory)Binds all Spring beans from the given factory by name. -
Uses of Binder in com.google.inject.testing.fieldbinder
Methods in com.google.inject.testing.fieldbinder with parameters of type Binder Modifier and Type Method Description voidBoundFieldModule. configure(Binder binder) -
Uses of Binder in com.google.inject.throwingproviders
Methods in com.google.inject.throwingproviders with parameters of type Binder Modifier and Type Method Description static ThrowingProviderBinderThrowingProviderBinder. create(Binder binder)
-