Package | Description |
---|---|
com.google.inject.assistedinject |
Extension for combining factory interfaces with injection; this extension requires
guice-assistedinject.jar . |
com.google.inject.internal |
Guice (sounds like "juice")
|
Modifier and Type | Method and Description |
---|---|
private <T> Key<T> |
FactoryProvider2.assistKey(java.lang.reflect.Method method,
Key<T> key,
Errors errors)
Returns a key similar to
key , but with an @Assisted binding annotation. |
private boolean |
FactoryProvider2.constructorHasMatchingParams(TypeLiteral<?> type,
java.lang.reflect.Constructor<?> constructor,
java.util.List<Key<?>> paramList,
Errors errors)
Matching logic for constructors annotated with AssistedInject.
|
private <T> InjectionPoint |
FactoryProvider2.findMatchingConstructorInjectionPoint(java.lang.reflect.Method method,
Key<?> returnType,
TypeLiteral<T> implementation,
java.util.List<Key<?>> paramList)
Finds a constructor suitable for the method.
|
Modifier and Type | Method and Description |
---|---|
ErrorsException |
Errors.toException() |
Modifier and Type | Method and Description |
---|---|
private <T> BindingImpl<T> |
InjectorImpl.convertConstantStringBinding(Key<T> key,
Errors errors)
Converts a constant string binding to the required type.
|
ConstructionProxy<T> |
ConstructionProxyFactory.create()
Gets a construction proxy for the given constructor.
|
ConstructionProxy<T> |
ProxyFactory.create() |
(package private) static <T> ConstructorBindingImpl<T> |
ConstructorBindingImpl.create(InjectorImpl injector,
Key<T> key,
InjectionPoint constructorInjector,
java.lang.Object source,
Scoping scoping,
Errors errors,
boolean failIfNotLinked,
boolean atInjectRequired) |
protected abstract V |
FailableCache.create(K key,
Errors errors) |
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 resolving
key . |
private <T> BindingImpl<T> |
InjectorImpl.createJustInTimeBindingRecursive(Key<T> key,
Errors errors,
boolean jitDisabled,
InjectorImpl.JitLimitation jitType)
Attempts to create a just-in-time binding for
key 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 to
Provider<T> , i.e. |
private <T> BindingImpl<TypeLiteral<T>> |
InjectorImpl.createTypeLiteralBinding(Key<TypeLiteral<T>> key,
Errors errors)
Converts a binding for a
Key<TypeLiteral<T>> to the value TypeLiteral<T> . |
(package private) <T> BindingImpl<T> |
InjectorImpl.createUninitializedBinding(Key<T> key,
Scoping scoping,
java.lang.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.RealMapProvider.doInitialize(InjectorImpl injector,
Errors errors) |
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.
|
(package private) abstract void |
RealMapBinder.RealMultimapBinderProviderWithDependencies.doInitialize(InjectorImpl injector,
Errors errors)
Initialize the factory.
|
ConstructorInjector<?> |
ConstructorInjectorStore.get(InjectionPoint constructorInjector,
Errors errors)
Returns a new complete constructor injector with injection listeners registered.
|
V |
FailableCache.get(K key,
Errors errors) |
<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 for
key , creating it if necessary. |
static Key<?> |
Annotations.getKey(TypeLiteral<?> type,
java.lang.reflect.Member member,
java.lang.annotation.Annotation[] annotations,
Errors errors)
Gets a key for the given type, member and annotations.
|
(package private) SingleParameterInjector<?>[] |
InjectorImpl.getParametersInjectors(java.util.List<Dependency<?>> parameters,
Errors errors)
Returns parameter injectors, or
null 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.
|
void |
InternalProviderInstanceBindingImpl.initialize(InjectorImpl injector,
Errors errors) |
(package private) abstract void |
InternalProviderInstanceBindingImpl.Factory.initialize(InjectorImpl injector,
Errors errors)
A callback that allows for implementations to fetch dependencies on other bindings.
|
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.RealMapBinderProviderWithDependencies.initialize(InjectorImpl injector,
Errors errors) |
(package private) void |
RealMapBinder.RealMultimapBinderProviderWithDependencies.initialize(InjectorImpl injector,
Errors errors)
This will get the authoritative
RealMapBinder.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.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 |
Initializer.InjectableReference.validate(Errors errors) |
Constructor and Description |
---|
ProxyFactory(InjectionPoint injectionPoint,
java.lang.Iterable<MethodAspect> methodAspects) |
SingleFieldInjector(InjectorImpl injector,
InjectionPoint injectionPoint,
Errors errors) |
SingleMethodInjector(InjectorImpl injector,
InjectionPoint injectionPoint,
Errors errors) |