Uses of Class
com.google.inject.internal.Errors
Packages that use Errors
Package
Description
Extension for combining factory interfaces with injection; this extension requires
guice-assistedinject.jar
.Guice (sounds like "juice")
Guice service provider interface
Extension for injecting objects that may throw at provision time; this extension requires
guice-throwingproviders.jar
.-
Uses of Errors in com.google.inject.assistedinject
Methods in com.google.inject.assistedinject with parameters of type ErrorsModifier and TypeMethodDescriptionprivate <T> Key<T>
Returns a key similar tokey
, but with an @Assisted binding annotation.private boolean
FactoryProvider2.constructorHasMatchingParams
(TypeLiteral<?> type, Constructor<?> constructor, List<Key<?>> paramList, Errors errors) Matching logic for constructors annotated with AssistedInject.private void
FactoryProvider2.validateFactoryReturnType
(Errors errors, Class<?> returnType, Class<?> factoryType) -
Uses of Errors in com.google.inject.internal
Fields in com.google.inject.internal declared as ErrorsModifier and TypeFieldDescriptionprotected Errors
AbstractProcessor.errors
private final Errors
EncounterImpl.errors
private final Errors
ErrorsException.errors
private final Errors
InternalInjectorCreator.errors
private final Errors
Errors.parent
The parent errors object.private final Errors
Errors.root
The root errors object.Methods in com.google.inject.internal that return ErrorsModifier and TypeMethodDescriptionErrors.addMessage
(ErrorId errorId, String messageFormat, Object... arguments) private Errors
Errors.addMessage
(ErrorId errorId, Throwable cause, String messageFormat, Object... arguments) Errors.addMessage
(Message message) Errors.addMessage
(String messageFormat, Object... arguments) Errors.ambiguousTypeConversion
(String stringValue, Object source, TypeLiteral<?> type, TypeConverterBinding a, TypeConverterBinding b) Errors.aopDisabled
(InterceptorBinding binding) Errors.atInjectRequired
(TypeLiteral<?> type) Errors.atTargetIsMissingParameter
(Annotation bindingAnnotation, String parameterName, Class<?> clazz) (package private) Errors
Errors.bindingAlreadySet
(Binding<?> binding, Binding<?> original) Errors.bindingAlreadySet
(Key<?> key, Object source) Errors.bindingToProvider()
Errors.cannotBindToGuiceType
(String simpleName) Errors.cannotInjectAbstractMethod
(Method method) Errors.cannotInjectFinalField
(Field field) Errors.cannotInjectInnerClass
(Class<?> type) Errors.cannotInjectLocalClass
(Class<?> type) Errors.cannotInjectMethodWithTypeParameters
(Method method) Errors.cannotInjectRawMembersInjector()
Errors.cannotInjectRawProvider()
Errors.cannotInjectRawTypeLiteral()
Errors.cannotInjectTypeLiteralOf
(Type unsupportedType) Errors.childBindingAlreadySet
(Key<?> key, Set<Object> sources) Errors.constructorNotDefinedByType
(Constructor<?> constructor, TypeLiteral<?> type) Errors.conversionError
(String stringValue, Object source, TypeLiteral<?> type, TypeConverterBinding typeConverterBinding, RuntimeException cause) Errors.conversionTypeError
(String stringValue, Object source, TypeLiteral<?> type, TypeConverterBinding typeConverterBinding, Object converted) Errors.converterReturnedNull
(String stringValue, Object source, TypeLiteral<?> type, TypeConverterBinding typeConverterBinding) Errors.duplicateBindingAnnotations
(Member member, Class<? extends Annotation> a, Class<? extends Annotation> b) <K,
V> Errors Errors.duplicateMapKey
(Key<Map<K, V>> mapKey, com.google.common.collect.Multimap<K, Binding<V>> duplicates) Errors.duplicateScopeAnnotations
(Class<? extends Annotation> a, Class<? extends Annotation> b) Errors.duplicateScopes
(ScopeBinding existing, Class<? extends Annotation> annotationType, Scope scope) Errors.errorCheckingDuplicateBinding
(Key<?> key, Object source, Throwable t) Errors.errorEnhancingClass
(Class<?> clazz, Throwable cause) Errors.errorInUserCode
(Throwable cause, String messageFormat, Object... arguments) Errors.errorNotifyingTypeListener
(TypeListenerBinding listener, TypeLiteral<?> type, Throwable cause) Errors.exposedButNotBound
(Key<?> key) ErrorsException.getErrors()
Errors.jitBindingAlreadySet
(Key<?> key) Errors.jitDisabled
(Key<?> key) Errors.jitDisabledInParent
(Key<?> key) Errors.keyNotFullySpecified
(TypeLiteral<?> typeLiteral) Errors.merge
(InternalProvisionException ipe) Errors.merge
(Collection<Message> messages) Errors.misplacedBindingAnnotation
(Member member, Annotation bindingAnnotation) Errors.missingConstantValues()
Errors.missingConstructor
(TypeLiteral<?> type) Errors.missingImplementation
(Key<?> key) We use a fairly generic error message here.(package private) <T> Errors
Errors.missingImplementationWithHint
(Key<T> key, Injector injector) Within guice's core, allow for better missing binding messagesErrors.missingRuntimeRetention
(Class<? extends Annotation> annotation) Errors.missingScopeAnnotation
(Class<? extends Annotation> annotation) Errors.notASubtype
(Class<?> implementationType, Class<?> type) Errors.optionalConstructor
(Constructor<?> constructor) Errors.recursiveBinding
(Key<?> key, Key<?> linkedKey) Errors.recursiveImplementationType()
Errors.recursiveProviderType()
Errors.scopeAnnotationOnAbstractType
(Class<? extends Annotation> scopeAnnotation, Class<?> type, Object source) Errors.scopeNotFound
(Class<? extends Annotation> scopeAnnotation) Errors.staticInjectionOnInterface
(Class<?> clazz) Errors.tooManyConstructors
(Class<?> implementation) Errors.voidProviderMethod()
Errors.withSource
(Object source) Returns an instance that usessource
as a reference point for newly added errors.Methods in com.google.inject.internal with parameters of type ErrorsModifier and TypeMethodDescription(package private) List<InjectorShell>
InjectorShell.Builder.build
(Initializer initializer, ProcessedBindingData processedBindingData, ContinuousStopwatch stopwatch, Errors errors) Creates and returns the injector shells for the current modules.private void
RealOptionalBinder.BindingSelection.checkBindingIsNotRecursive
(Errors errors) void
KotlinSupport.KotlinUnsupported.checkConstructorParameterAnnotations
(Constructor<?> constructor, Errors errors) void
KotlinSupportInterface.checkConstructorParameterAnnotations
(Constructor<?> constructor, Errors errors) Checks for any errors on the constructor's parameters's annotations.static void
Annotations.checkForMisplacedScopeAnnotations
(Class<?> type, Object source, Errors errors) Adds an error if there is a misplaced annotations ontype
.private <T> BindingImpl<T>
InjectorImpl.convertConstantStringBinding
(Key<T> key, Errors errors) Converts a constant string binding to the required type.(package private) static <T> ConstructorBindingImpl<T>
ConstructorBindingImpl.create
(InjectorImpl injector, Key<T> key, InjectionPoint constructorInjector, Object source, Scoping scoping, Errors errors, boolean failIfNotLinked, boolean atInjectRequired) protected abstract V
private <T> ConstructorInjector<T>
ConstructorInjectorStore.createConstructor
(InjectionPoint injectionPoint, Errors errors) private <T> BindingImpl<T>
InjectorImpl.createImplementedByBinding
(Key<T> key, Scoping scoping, ImplementedBy implementedBy, Errors errors) Creates a binding for a type annotated with @ImplementedBy.private <T> BindingImpl<T>
InjectorImpl.createJustInTimeBinding
(Key<T> key, Errors errors, boolean jitDisabled, InjectorImpl.JitLimitation jitType) Returns a new just-in-time binding created by resolvingkey
.private <T> BindingImpl<T>
InjectorImpl.createJustInTimeBindingRecursive
(Key<T> key, Errors errors, boolean jitDisabled, InjectorImpl.JitLimitation jitType) Attempts to create a just-in-time binding forkey
in the root injector, falling back to other ancestor injectors until this injector is tried.private <T> BindingImpl<MembersInjector<T>>
InjectorImpl.createMembersInjectorBinding
(Key<MembersInjector<T>> key, Errors errors) (package private) <T> SingleParameterInjector<T>
InjectorImpl.createParameterInjector
(Dependency<T> dependency, Errors errors) (package private) <T> BindingImpl<T>
InjectorImpl.createProvidedByBinding
(Key<T> key, Scoping scoping, ProvidedBy providedBy, Errors errors) Creates a binding for a type annotated with @ProvidedBy.private <T> BindingImpl<Provider<T>>
InjectorImpl.createSyntheticProviderBinding
(Key<Provider<T>> key, Errors errors) Creates a synthetic binding toProvider<T>
, i.e.private <T> BindingImpl<TypeLiteral<T>>
InjectorImpl.createTypeLiteralBinding
(Key<TypeLiteral<T>> key, Errors errors) Converts a binding for aKey<TypeLiteral<T>>
to the valueTypeLiteral<T>
.(package private) <T> BindingImpl<T>
InjectorImpl.createUninitializedBinding
(Key<T> key, Scoping scoping, Object source, Errors errors, boolean jitBinding) Creates a binding for an injectable type with the given scope.private <T> MembersInjectorImpl<T>
MembersInjectorStore.createWithListeners
(TypeLiteral<T> type, Errors errors) Creates a new members injector and attaches both injection listeners and method aspects.protected void
RealMapBinder.ExtensionRealMapProvider.doInitialize
(InjectorImpl injector, Errors errors) protected void
RealMapBinder.MultimapBinder.RealMultimapProvider.doInitialize
(InjectorImpl injector, Errors errors) protected void
RealMapBinder.MultimapBinder.RealProviderMultimapProvider.doInitialize
(InjectorImpl injector, Errors errors) protected abstract void
RealMapBinder.RealMapBinderProviderWithDependencies.doInitialize
(InjectorImpl injector, Errors errors) Initialize the factory.protected void
RealMapBinder.RealMapProvider.doInitialize
(InjectorImpl injector, Errors errors) (package private) abstract void
RealMapBinder.RealMultimapBinderProviderWithDependencies.doInitialize
(InjectorImpl injector, Errors errors) Initialize the factory.protected void
RealMapBinder.RealProviderMapProvider.doInitialize
(InjectorImpl injector, Errors errors) static Annotation
Annotations.findBindingAnnotation
(Errors errors, Member member, Annotation[] annotations) Returns the binding annotation onmember
, or null if there isn't one.static Class<? extends Annotation>
Annotations.findScopeAnnotation
(Errors errors, Annotation[] annotations) Returns the scoping annotation, or null if there isn't one.static Class<? extends Annotation>
Annotations.findScopeAnnotation
(Errors errors, Class<?> implementation) Returns the scope annotation ontype
, or null if none is specified.ConstructorInjectorStore.get
(InjectionPoint constructorInjector, Errors errors) Returns a new complete constructor injector with injection listeners registered.<T> MembersInjectorImpl<T>
MembersInjectorStore.get
(TypeLiteral<T> key, Errors errors) Returns a new complete members injector with injection listeners registered.(package private) <T> BindingImpl<T>
InjectorImpl.getBindingOrThrow
(Key<T> key, Errors errors, InjectorImpl.JitLimitation jitType) Gets a binding implementation.InjectorBindingData.getConverter
(String stringValue, TypeLiteral<?> type, Errors errors, Object source) (package private) com.google.common.collect.ImmutableList<SingleMemberInjector>
MembersInjectorStore.getInjectors
(Set<InjectionPoint> injectionPoints, Errors errors) Returns the injectors for the specified injection points.(package private) <T> InternalFactory<? extends T>
InjectorImpl.getInternalFactory
(Key<T> key, Errors errors, InjectorImpl.JitLimitation jitType) private <T> BindingImpl<T>
InjectorImpl.getJustInTimeBinding
(Key<T> key, Errors errors, InjectorImpl.JitLimitation jitType) Returns a just-in-time binding forkey
, creating it if necessary.static Key<?>
Annotations.getKey
(TypeLiteral<?> type, Member member, Annotation[] annotations, Errors errors) Gets a key for the given type, member and annotations.(package private) <T> Key<T>
ProviderMethodsModule.getKey
(Errors errors, TypeLiteral<T> type, Member member, Annotation[] annotations) (package private) SingleParameterInjector<?>[]
InjectorImpl.getParametersInjectors
(List<Dependency<?>> parameters, Errors errors) Returns parameter injectors, ornull
if there are no parameters.private static <T> Key<T>
InjectorImpl.getProvidedKey
(Key<Provider<T>> key, Errors errors) (package private) <T> Provider<T>
InjectorImpl.getProviderOrThrow
(Dependency<T> dependency, Errors errors) void
Handles an error.void
ConstructorBindingImpl.initialize
(InjectorImpl injector, Errors errors) (package private) void
DeferredLookups.initialize
(Errors errors) Initialize the specified lookups, either immediately or when the injector is created.void
DelayedInitialize.initialize
(InjectorImpl injector, Errors errors) Initializes this binding, throwing any errors if necessary.(package private) abstract void
InternalProviderInstanceBindingImpl.Factory.initialize
(InjectorImpl injector, Errors errors) A callback that allows for implementations to fetch dependencies on other bindings.void
InternalProviderInstanceBindingImpl.initialize
(InjectorImpl injector, Errors errors) void
LinkedProviderBindingImpl.initialize
(InjectorImpl injector, Errors errors) void
ProvidedByInternalFactory.initialize
(InjectorImpl injector, Errors errors) (package private) void
ProviderMethod.initialize
(InjectorImpl injector, Errors errors) (package private) void
RealMapBinder.ProviderMapEntry.initialize
(InjectorImpl injector, Errors errors) (package private) final void
RealMapBinder.RealMapBinderProviderWithDependencies.initialize
(InjectorImpl injector, Errors errors) (package private) final void
RealMapBinder.RealMultimapBinderProviderWithDependencies.initialize
(InjectorImpl injector, Errors errors) This will get the authoritativeRealMapBinder.BindingSelection
from the map provider.(package private) void
RealMultibinder.BaseFactory.initialize
(InjectorImpl injector, Errors errors) (package private) void
RealMultibinder.BindingSelection.initialize
(InjectorImpl injector, Errors errors) (package private) void
RealOptionalBinder.BindingSelection.initialize
(InjectorImpl injector, Errors errors) (package private) final void
RealOptionalBinder.RealOptionalBinderProviderWithDependencies.initialize
(InjectorImpl injector, Errors errors) (package private) <T> void
InjectorImpl.initializeBinding
(BindingImpl<T> binding, Errors errors) (package private) <T> void
InjectorImpl.initializeJitBinding
(BindingImpl<T> binding, Errors errors) (package private) void
Performs creation-time injections on all objects that require it.(package private) void
InternalInjectorCreator.loadEagerSingletons
(InjectorImpl injector, Stage stage, Errors errors) Loads eager singletons, or all singletons if we're in Stage.PRODUCTION.(package private) static Scoping
Scoping.makeInjectable
(Scoping scoping, InjectorImpl injector, Errors errors) Replaces annotation scopes with instance scopes using the Injector's annotation-to-instance map.void
void
Notifies that creation should happen.void
void
private static <K,
V> void RealMapBinder.BindingSelection.reportDuplicateKeysError
(Key<Map<K, V>> mapKey, com.google.common.collect.Multimap<K, Binding<V>> duplicates, Errors errors) (package private) void
ProcessedBindingData.runCreationListeners
(Errors errors) Runs creation listeners.private boolean
RealMapBinder.BindingSelection.tryInitialize
(InjectorImpl injector, Errors errors) Will initialize internal data structures.void
(package private) void
Initializer.validateOustandingInjections
(Errors errors) Prepares member injectors for all injected instances.Constructors in com.google.inject.internal with parameters of type ErrorsModifierConstructorDescription(package private)
AbstractBindingProcessor
(Errors errors, ProcessedBindingData processedBindingData) protected
AbstractProcessor
(Errors errors) (package private)
BindingProcessor
(Errors errors, Initializer initializer, ProcessedBindingData processedBindingData) (package private)
EncounterImpl
(Errors errors, Lookups lookups) private
ErrorsException
(Errors errors) (package private)
InjectionRequestProcessor
(Errors errors, Initializer initializer) (package private)
InjectorOptionsProcessor
(Errors errors) (package private)
InterceptorBindingProcessor
(Errors errors) (package private)
ListenerBindingProcessor
(Errors errors) (package private)
LookupProcessor
(Errors errors) (package private)
MessageProcessor
(Errors errors) (package private)
(package private)
PrivateElementProcessor
(Errors errors) (package private)
ScopeBindingProcessor
(Errors errors) SingleFieldInjector
(InjectorImpl injector, InjectionPoint injectionPoint, Errors errors) (package private)
SingleMethodInjector
(InjectorImpl injector, InjectionPoint injectionPoint, Errors errors) (package private)
TypeConverterBindingProcessor
(Errors errors) (package private)
UntargettedBindingProcessor
(Errors errors, ProcessedBindingData processedBindingData) -
Uses of Errors in com.google.inject.spi
Methods in com.google.inject.spi with parameters of type ErrorsModifier and TypeMethodDescriptionprivate static boolean
InjectionPoint.checkForMisplacedBindingAnnotations
(Member member, Errors errors) Returns true if the binding annotation is in the wrong place.private com.google.common.collect.ImmutableList<Dependency<?>>
InjectionPoint.forMember
(Errors errors, Member member, TypeLiteral<?> type, AnnotatedType[] annotatedTypes, Annotation[][] parameterAnnotationsPerParameter, Predicate<Integer> isParameterKotlinNullable) private static Set<InjectionPoint>
InjectionPoint.getInjectionPoints
(TypeLiteral<?> type, boolean statics, Errors errors) Returns an ordered, immutable set of injection points for the given type.private static boolean
InjectionPoint.isValidMethod
(InjectionPoint.InjectableMethod injectableMethod, Errors errors) -
Uses of Errors in com.google.inject.throwingproviders
Methods in com.google.inject.throwingproviders with parameters of type ErrorsModifier and TypeMethodDescription(package private) <T> Key<T>
CheckedProviderMethodsModule.getKey
(Errors errors, TypeLiteral<T> type, Member member, Annotation[] annotations)