(package private) java.util.List<InjectorShell> |
InjectorShell.Builder.build(Initializer initializer,
ProcessedBindingData bindingData,
Stopwatch stopwatch,
Errors errors) |
Creates and returns the injector shells for the current modules.
|
static void |
Annotations.checkForMisplacedScopeAnnotations(java.lang.Class<?> type,
java.lang.Object source,
Errors errors) |
Adds an error if there is a misplaced annotations on type .
|
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,
java.lang.Object source,
Scoping scoping,
Errors errors,
boolean failIfNotLinked,
boolean failIfNotExplicit) |
|
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.createProviderBinding(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.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 java.lang.annotation.Annotation |
Annotations.findBindingAnnotation(Errors errors,
java.lang.reflect.Member member,
java.lang.annotation.Annotation[] annotations) |
Returns the binding annotation on member , or null if there isn't one.
|
static java.lang.Class<? extends java.lang.annotation.Annotation> |
Annotations.findScopeAnnotation(Errors errors,
java.lang.annotation.Annotation[] annotations) |
Returns the scoping annotation, or null if there isn't one.
|
static java.lang.Class<? extends java.lang.annotation.Annotation> |
Annotations.findScopeAnnotation(Errors errors,
java.lang.Class<?> implementation) |
Returns the scope annotation on type , or null if none is specified.
|
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.
|
TypeConverterBinding |
InheritingState.getConverter(java.lang.String stringValue,
TypeLiteral<?> type,
Errors errors,
java.lang.Object source) |
|
TypeConverterBinding |
State.getConverter(java.lang.String stringValue,
TypeLiteral<?> type,
Errors errors,
java.lang.Object source) |
Returns the matching converter for type , or null if none match.
|
(package private) com.google.common.collect.ImmutableList<SingleMemberInjector> |
MembersInjectorStore.getInjectors(java.util.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 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) <T> Key<T> |
ProviderMethodsModule.getKey(Errors errors,
TypeLiteral<T> type,
java.lang.reflect.Member member,
java.lang.annotation.Annotation[] 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 |
ErrorHandler.handle(java.lang.Object source,
Errors errors) |
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) void |
RealMapBinder.RealMapBinderProviderWithDependencies.initialize(InjectorImpl injector,
Errors errors) |
|
(package private) void |
RealMapBinder.RealMultimapBinderProviderWithDependencies.initialize(InjectorImpl injector,
Errors errors) |
|
(package private) void |
RealMultibinder.BindingSelection.initialize(InjectorImpl injector,
Errors errors) |
|
(package private) void |
RealMultibinder.RealMultibinderCollectionOfProvidersProvider.initialize(InjectorImpl injector,
Errors errors) |
|
(package private) void |
RealMultibinder.RealMultibinderProvider.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) |
|
(package private) void |
Initializer.injectAll(Errors errors) |
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.
|
Errors |
Errors.merge(Errors moreErrors) |
|
void |
BoundProviderFactory.notify(Errors errors) |
|
void |
CreationListener.notify(Errors errors) |
Notifies that creation should happen.
|
void |
ExposedKeyFactory.notify(Errors errors) |
|
void |
FactoryProxy.notify(Errors errors) |
|
private static <K,V> void |
RealMapBinder.BindingSelection.reportDuplicateKeysError(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 |
Initializer.InjectableReference.validate(Errors errors) |
|
(package private) void |
Initializer.validateOustandingInjections(Errors errors) |
Prepares member injectors for all injected instances.
|