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.internal Guice (sounds like "juice")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.servlet Servlet API scopes, bindings and registration; this extension requiresguice-servlet.jar.com.google.inject.spi Guice service provider interfacecom.google.inject.throwingproviders Extension for injecting objects that may throw at provision time; this extension requiresguice-throwingproviders.jar.com.google.inject.util Helper methods for working with Guice. -
-
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.Fields in com.google.inject declared as Binder Modifier and Type Field Description (package private) BinderAbstractModule. binderMethods in com.google.inject that return Binder Modifier and Type Method Description protected BinderAbstractModule. binder()Gets direct access to the underlyingBinder.BinderBinder. skipSources(java.lang.Class... classesToSkip)Returns a binder that skipsclassesToSkipwhen identify the calling code.BinderBinder. withSource(java.lang.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.internal
Fields in com.google.inject.internal declared as Binder Modifier and Type Field Description protected BinderAbstractBindingBuilder. binderprivate BinderExposureBuilder. binderprivate BinderRealMapBinder. binderprivate BinderRealMultibinder. binderprivate BinderRealOptionalBinder. binderMethods in com.google.inject.internal with parameters of type Binder Modifier and Type Method Description private voidRealOptionalBinder. addDirectTypeBinding(Binder binder)Adds a binding for T.voidConstructorBindingImpl. applyTo(Binder binder)voidExposedBindingImpl. applyTo(Binder binder)voidInjectorImpl.ConvertedConstantBindingImpl. applyTo(Binder binder)voidInjectorImpl.SyntheticProviderBindingImpl. applyTo(Binder binder)voidInstanceBindingImpl. applyTo(Binder binder)voidLinkedBindingImpl. applyTo(Binder binder)voidLinkedProviderBindingImpl. applyTo(Binder binder)voidPrivateElementsImpl. applyTo(Binder binder)voidProviderInstanceBindingImpl. applyTo(Binder binder)voidUntargettedBindingImpl. applyTo(Binder binder)voidInjectorShell.InheritedScannersModule. configure(Binder binder)voidInjectorShell.RootModule. configure(Binder binder)voidProviderMethod. configure(Binder binder)voidProviderMethodsModule. configure(Binder binder)voidRealMapBinder. configure(Binder binder)voidRealMapBinder.MultimapBinder. configure(Binder binder)voidRealMultibinder. configure(Binder binder)voidRealOptionalBinder. configure(Binder binder)private <T> ProviderMethod<T>ProviderMethodsModule. createProviderMethod(Binder binder, java.lang.reflect.Method method, java.lang.annotation.Annotation annotation)private static ProvidesMethodScanner.AnnotationOrErrorProvidesMethodScanner. findMapKeyAnnotation(Binder binder, java.lang.reflect.Method method)private java.lang.annotation.AnnotationProviderMethodsModule. getAnnotation(Binder binder, java.lang.reflect.Method method)Returns the annotation that is claimed by the scanner, or null if there is none.java.util.List<ProviderMethod<?>>ProviderMethodsModule. getProviderMethods(Binder binder)static <K,V>
RealMapBinder<K,V>RealMapBinder. newMapRealBinder(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.(package private) static <K,V>
RealMapBinder<K,V>RealMapBinder. newRealMapBinder(Binder binder, TypeLiteral<K> keyType, Key<V> valueTypeAndAnnotation)private static <K,V>
RealMapBinder<K,V>RealMapBinder. newRealMapBinder(Binder binder, TypeLiteral<K> keyType, TypeLiteral<V> valueType, Key<java.util.Map<K,V>> mapKey, RealMultibinder<java.util.Map.Entry<K,Provider<V>>> entrySetBinder)static <K,V>
RealMapBinder<K,V>RealMapBinder. newRealMapBinder(Binder binder, TypeLiteral<K> keyType, TypeLiteral<V> valueType, java.lang.annotation.Annotation annotation)Returns a new mapbinder that collects entries ofkeyType/valueTypein aMapthat is itself bound withannotation.static <K,V>
RealMapBinder<K,V>RealMapBinder. newRealMapBinder(Binder binder, TypeLiteral<K> keyType, TypeLiteral<V> valueType, java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)Returns a new mapbinder that collects entries ofkeyType/valueTypein aMapthat is itself bound withannotationType.static <T> RealOptionalBinder<T>RealOptionalBinder. newRealOptionalBinder(Binder binder, Key<T> type)static <T> RealMultibinder<T>RealMultibinder. newRealSetBinder(Binder binder, Key<T> key)Implementation of newSetBinder.<T> Key<T>ProvidesMethodScanner. prepareMethod(Binder binder, java.lang.annotation.Annotation annotation, Key<T> key, InjectionPoint injectionPoint)Constructors in com.google.inject.internal with parameters of type Binder Constructor Description AbstractBindingBuilder(Binder binder, java.util.List<Element> elements, java.lang.Object source, Key<T> key)BindingBuilder(Binder binder, java.util.List<Element> elements, java.lang.Object source, Key<T> key)ConstantBindingBuilderImpl(Binder binder, java.util.List<Element> elements, java.lang.Object source)ExposureBuilder(Binder binder, java.lang.Object source, Key<T> key)RealMapBinder(Binder binder, TypeLiteral<K> keyType, TypeLiteral<V> valueType, Key<java.util.Map<K,V>> mapKey, RealMultibinder<java.util.Map.Entry<K,Provider<V>>> entrySetBinder)RealMultibinder(Binder binder, Key<T> key)RealOptionalBinder(Binder binder, Key<T> typeKey) -
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, java.lang.annotation.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, java.lang.Class<? extends java.lang.annotation.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, java.lang.Class<K> keyType, java.lang.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, java.lang.Class<K> keyType, java.lang.Class<V> valueType, java.lang.annotation.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, java.lang.Class<K> keyType, java.lang.Class<V> valueType, java.lang.Class<? extends java.lang.annotation.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, java.lang.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, java.lang.annotation.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, java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)Returns a new multibinder that collects instances oftypein aSetthat is itself bound withannotationType.static <T> Multibinder<T>Multibinder. newSetBinder(Binder binder, java.lang.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, java.lang.Class<T> type, java.lang.annotation.Annotation annotation)Returns a new multibinder that collects instances oftypein aSetthat is itself bound withannotation.static <T> Multibinder<T>Multibinder. newSetBinder(Binder binder, java.lang.Class<T> type, java.lang.Class<? extends java.lang.annotation.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, java.util.Map<java.lang.String,java.lang.String> properties)Creates a constant binding to@Named(key)for each entry inproperties.static voidNames. bindProperties(Binder binder, java.util.Properties properties)Creates a constant binding to@Named(key)for each property. -
Uses of Binder in com.google.inject.servlet
Fields in com.google.inject.servlet declared as Binder Modifier and Type Field Description private BinderFiltersModuleBuilder. binderprivate BinderServletsModuleBuilder. binderConstructors in com.google.inject.servlet with parameters of type Binder Constructor Description FiltersModuleBuilder(Binder binder)ServletsModuleBuilder(Binder binder) -
Uses of Binder in com.google.inject.spi
Classes in com.google.inject.spi that implement Binder Modifier and Type Class Description private static classElements.RecordingBinderFields in com.google.inject.spi declared as Binder Modifier and Type Field Description private BinderElements.ModuleInfo. binderMethods 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)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)voidElements.ElementsAsModule. configure(Binder binder)abstract <T> Key<T>ModuleAnnotatedMethodScanner. prepareMethod(Binder binder, java.lang.annotation.Annotation annotation, Key<T> key, InjectionPoint injectionPoint)Prepares a method for binding.Constructors in com.google.inject.spi with parameters of type Binder Constructor Description ModuleInfo(Binder binder, ModuleSource moduleSource, boolean skipScanning) -
Uses of Binder in com.google.inject.throwingproviders
Fields in com.google.inject.throwingproviders declared as Binder Modifier and Type Field Description private BinderThrowingProviderBinder. binderMethods in com.google.inject.throwingproviders with parameters of type Binder Modifier and Type Method Description (package private) voidCheckedProviderMethod. configure(Binder binder)voidCheckedProviderMethodsModule. configure(Binder binder)static ThrowingProviderBinderThrowingProviderBinder. create(Binder binder)(package private) <T> CheckedProviderMethod<T>CheckedProviderMethodsModule. createProviderMethod(Binder binder, java.lang.reflect.Method method, CheckedProvides checkedProvides)(package private) static <T> java.lang.reflect.Constructor<? extends T>CheckedProvideUtils. findThrowingConstructor(TypeLiteral<? extends T> typeLiteral, Binder binder)(package private) java.util.List<CheckedProviderMethod<?>>CheckedProviderMethodsModule. getProviderMethods(Binder binder)(package private) static voidCheckedProvideUtils. validateExceptions(Binder binder, java.lang.Iterable<TypeLiteral<?>> actualExceptionTypes, java.lang.Iterable<java.lang.Class<? extends java.lang.Throwable>> expectedExceptionTypes, java.lang.Class<? extends CheckedProvider> checkedProvider)Adds errors to the binder if the exceptions aren't valid.Constructors in com.google.inject.throwingproviders with parameters of type Binder Constructor Description ThrowingProviderBinder(Binder binder) -
Uses of Binder in com.google.inject.util
Fields in com.google.inject.util declared as Binder Modifier and Type Field Description protected BinderModules.ModuleWriter. binderMethods in com.google.inject.util with parameters of type Binder Modifier and Type Method Description voidModules.CombinedModule. configure(Binder binder)voidModules.DisableCircularProxiesModule. configure(Binder binder)voidModules.EmptyModule. configure(Binder binder)voidModules.RequireAtInjectOnConstructorsModule. configure(Binder binder)voidModules.RequireExactBindingAnnotationsModule. configure(Binder binder)voidModules.RequireExplicitBindingsModule. configure(Binder binder)Constructors in com.google.inject.util with parameters of type Binder Constructor Description ModuleWriter(Binder binder)
-