Uses of Class
com.google.inject.internal.ErrorsException
Packages that use ErrorsException
Package
Description
Extension for combining factory interfaces with injection; this extension requires
guice-assistedinject.jar
.Guice (sounds like "juice")
-
Uses of ErrorsException in com.google.inject.assistedinject
Methods in com.google.inject.assistedinject that throw ErrorsExceptionModifier 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 <T> InjectionPoint
FactoryProvider2.findMatchingConstructorInjectionPoint
(Method method, Key<?> returnType, TypeLiteral<T> implementation, List<Key<?>> paramList) Finds a constructor suitable for the method. -
Uses of ErrorsException in com.google.inject.internal
Methods in com.google.inject.internal that return ErrorsExceptionMethods in com.google.inject.internal that throw ErrorsExceptionModifier and TypeMethodDescriptionprivate <T> BindingImpl
<T> InjectorImpl.convertConstantStringBinding
(Key<T> key, Errors errors) Converts a constant string binding to the required type.ConstructionProxyFactory.create()
Gets a construction proxy for the given constructor.(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
ProxyFactory.create()
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 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.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.(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) 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
ConstructorBindingImpl.initialize
(InjectorImpl injector, Errors errors) 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) 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) 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) void
Errors.throwIfNewErrors
(int expectedSize) void
Constructors in com.google.inject.internal that throw ErrorsExceptionModifierConstructorDescription(package private)
ProxyFactory
(InjectionPoint injectionPoint, Iterable<MethodAspect> methodAspects) SingleFieldInjector
(InjectorImpl injector, InjectionPoint injectionPoint, Errors errors) (package private)
SingleMethodInjector
(InjectorImpl injector, InjectionPoint injectionPoint, Errors errors)