Package com.google.inject.internal
Guice (sounds like "juice")
-
Interface Summary Interface Description CircularDependencyProxy ConstructionProxy<T> Proxies calls to aConstructorfor a classT.ConstructionProxyFactory<T> CreatesConstructionProxyinstances.CreationListener Something that is notified upon creation.CycleDetectingLock<ID> Simplified version ofLockthat is special due to how it handles deadlocks detection.DelayedInitialize Something that needs some delayed initialization, typically a binding or internal factory that needs to be created & put into the bindings map & then initialized later.ErrorHandler Handles errors in the Injector.Initializable<T> Holds a reference that requires initialization to be performed before it can be used.InjectorImpl.MethodInvoker Invokes a method.InternalFactory<T> Creates objects which will be injected.Lookups Accessors for providers and members injectors.MoreTypes.CompositeType A type formed from other types, such as arrays, parameterized types or wildcard typesProvisionListenerStackCallback.ProvisionCallback<T> SingleMemberInjector Injects a field or method of a given object.State The inheritable data within an injector. -
Class Summary Class Description AbstractBindingBuilder<T> Bind a value or constant.AbstractBindingProcessor Guarantees that processing of Binding elements happens in a sane way.AbstractProcessor Abstract base class for creating an injector from module elements.Annotations Annotation utilities.Annotations.AnnotationChecker Checks for the presence of annotations.BindingBuilder<T> Bind a non-constant key.BindingImpl<T> BindingProcessor HandlesBinder.bind(com.google.inject.Key<T>)andBinder.bindConstant()elements.BoundProviderFactory<T> Delegates to a custom factory which is also bound in the injector.BytecodeGen Utility methods for runtime code generation and class loading.BytecodeGen.BridgeClassLoader Loader for Guice-generated classes.BytecodeGen.SystemBridgeHolder ConstantBindingBuilderImpl<T> Bind a constant.ConstantFactory<T> ConstructionContext<T> Context of a dependency construction.ConstructorBindingImpl<T> ConstructorBindingImpl.Factory<T> ConstructorInjector<T> Creates instances using an injectable constructor.ConstructorInjectorStore Constructor injectors by type.CycleDetectingLock.CycleDetectingLockFactory<ID> Wraps locks so they would never cause a deadlock.CycleDetectingLock.CycleDetectingLockFactory.ReentrantCycleDetectingLock<ID> The implementation forCycleDetectingLock.DeclaredMembers Utility class for retrieving declared fields or methods in a particular order, because the JVM doesn't guarantee ordering for listing declared methods.DefaultConstructionProxyFactory<T> Produces construction proxies that invoke the class constructor.DefaultConstructionProxyFactory.ReflectiveProxy<T> DeferredLookups Returns providers and members injectors that haven't yet been initialized.DelegatingInvocationHandler<T> EncounterImpl<T> Errors A collection of error messages.ExposedBindingImpl<T> ExposedKeyFactory<T> This factory exists in a parent injector.ExposureBuilder<T> For private binder's expose() method.FactoryProxy<T> A placeholder which enables us to swap in the real factory once the injector is created.FailableCache<K,V> Lazily creates (and caches) values for keys.Indexer Visits bindings to return aIndexedBindingthat can be used to emulate the binding deduplication that Guice internally performs.Indexer.IndexedBinding InheritingState Initializables Initializer Manages and injects instances at injector-creation time.Initializer.InjectableReference<T> InjectionRequestProcessor HandlesBinder.requestInjectionandBinder.requestStaticInjectioncommands.InjectorImpl DefaultInjectorimplementation.InjectorImpl.ConvertedConstantBindingImpl<T> InjectorImpl.InjectorOptions Options that control how the injector behaves.InjectorImpl.SyntheticProviderBindingImpl<T> A framework-created JIT Providerbinding. InjectorOptionsProcessor A processor to gather injector options.InjectorShell A partially-initialized injector.InjectorShell.Builder InjectorShell.InheritedScannersModule InjectorShell.InjectorFactory InjectorShell.LoggerFactory InjectorShell.RootModule InstanceBindingImpl<T> InternalContext Internal context.InternalFactoryToInitializableAdapter<T> AdaptsProviderInstanceBindingproviders, ensuring circular proxies fail (or proxy) properly.InternalFactoryToProviderAdapter<T> InternalFlags Contains flags for Guice.InternalInjectorCreator Builds a tree of injectors.InternalInjectorCreator.ToolStageInjector Injectorexposed to users inStage.TOOL.InternalProviderInstanceBindingImpl<T> AProviderInstanceBindingImplfor implementing 'native' guice extensions.InternalProviderInstanceBindingImpl.CyclicFactory<T> An base factory implementation that can be extended to provide a specialized implementation of aProviderWithExtensionVisitorand also implementsInternalFactoryInternalProviderInstanceBindingImpl.Factory<T> A base factory implementation.LinkedBindingImpl<T> LinkedProviderBindingImpl<T> ListenerBindingProcessor HandlesBinder#bindListenercommands.LookupProcessor HandlesBinder.getProviderandBinder.getMembersInjector(TypeLiteral)commands.MembersInjectorImpl<T> Injects members of instances of a given type.MembersInjectorStore Members injectors by type.MessageProcessor HandlesBinder.addErrorcommands.Messages Utility methods forMessageobjectsMessages.Converter<T> Messages.ThrowableEquivalence ModuleAnnotatedMethodScannerProcessor HandlesBinder.scanModulesForAnnotatedMethodscommands.MoreTypes Static methods for working with types that we aren't publishing in the publicTypesAPI.MoreTypes.GenericArrayTypeImpl MoreTypes.ParameterizedTypeImpl MoreTypes.WildcardTypeImpl The WildcardType interface supports multiple upper bounds and multiple lower bounds.Nullability Whether a member supports null values injected.PrivateElementProcessor HandlesBinder.newPrivateBinder()elements.PrivateElementsImpl ProcessedBindingData Keeps track of creation listeners & uninitialized bindings, so they can be processed after bindings are recorded.ProvidedByInternalFactory<T> AnInternalFactoryfor @ProvidedBybindings.ProviderInstanceBindingImpl<T> ProviderInternalFactory<T> Base class for InternalFactories that are used by Providers, to handle circular dependencies.ProviderMethod<T> A provider that invokes a method and returns its result.ProviderMethod.ReflectionProviderMethod<T> AProviderMethodimplementation that invokes the method using normal java reflection.ProviderMethodsModule Creates bindings to methods annotated with @Provides.ProviderMethodsModule.MethodAndAnnotation ProviderMethodsModule.Signature ProviderToInternalFactoryAdapter<T> ProvidesMethodScanner AModuleAnnotatedMethodScannerthat handles the ,ProvidesIntoSet,ProvidesIntoMapandProvidesIntoOptionalannotations.ProvidesMethodScanner.AnnotationOrError ProvidesMethodScanner.TypeAndValue<T> ProvisionListenerCallbackStore ProvisionListenerStackCallbackfor each key.ProvisionListenerCallbackStore.KeyBinding A struct that holds key & binding but uses just key for equality/hashcode.ProvisionListenerStackCallback<T> Intercepts provisions with a stack of listeners.RealElement An implementation of Element.RealMapBinder<K,V> The actual mapbinder plays several roles:RealMapBinder.BindingSelection<K,V> The BindingSelection contains some of the core state and logic for the MapBinder.RealMapBinder.MultimapBinder<K,V> BindsMap<K, Set<V>>and {Map<K, Set<Provider<V>>>.RealMapBinder.MultimapBinder.RealMultimapProvider<K,V> RealMapBinder.MultimapBinder.RealMultimapProvider.PerKeyData<K,V> A simple class to hold a key and the associated bindings as an array.RealMapBinder.MultimapBinder.RealProviderMultimapProvider<K,V> RealMapBinder.ProviderMapEntry<K,V> A factory for aMap.Entry<K, Provider<V>>.RealMapBinder.RealMapBinderProviderWithDependencies<K,V,P> A base class for ProviderWithDependencies that need equality based on a specific object.RealMapBinder.RealMapProvider<K,V> RealMapBinder.RealMultimapBinderProviderWithDependencies<K,V,P> A base class for ProviderWithDependencies that need equality based on a specific object.RealMapBinder.RealProviderMapProvider<K,V> RealMultibinder<T> The actual multibinder plays several roles:RealMultibinder.BindingSelection<T> RealMultibinder.PermitDuplicatesModule We install the permit duplicates configuration as its own binding, all by itself.RealMultibinder.RealMultibinderCollectionOfProvidersProvider<T> RealMultibinder.RealMultibinderProvider<T> RealOptionalBinder<T> The actual OptionalBinder plays several roles.RealOptionalBinder.ActualImpl RealOptionalBinder.BaseAnnotation RealOptionalBinder.BindingSelection<T> A helper object that implements the core logic for deciding what the implementation of the binding will be.RealOptionalBinder.DefaultImpl RealOptionalBinder.JavaOptionalProvider<T> Provides the binding for java.util.Optional. RealOptionalBinder.JavaOptionalProviderProvider<T> Provides the binding for java.util.Optional>. RealOptionalBinder.RealDirectTypeProvider<T> Provides the binding for T, conditionally installed by calling setBinding/setDefault.RealOptionalBinder.RealOptionalBinderProviderWithDependencies<T,P> A base class for ProviderWithDependencies that need equality based on a specific object.RealOptionalBinder.RealOptionalKeyProvider<T> Provides the binding for Optional. RealOptionalBinder.RealOptionalProviderProvider<T> Provides the binding for Optional>. ScopeBindingProcessor HandlesBinder.bindScopecommands.Scoping References a scope, either directly (as a scope instance), or indirectly (as a scope annotation).SingleFieldInjector Sets an injectable field.SingleMethodInjector Invokes an injectable method.SingleParameterInjector<T> Resolves a single parameter, to be used in a constructor or method invocation.SingletonScope One instance perInjector.TypeConverterBindingProcessor HandlesBinder.convertToTypescommands.UniqueAnnotations UntargettedBindingImpl<T> UntargettedBindingProcessor Processes just UntargettedBindings.WeakKeySet Minimal set that doesn't hold strong references to the contained keys.WeakKeySet.KeyAndSource -
Enum Summary Enum Description BytecodeGen.Visibility The required visibility of a user's class from a Guice-generated class.Element.Type Indexer.BindingType Initializer.InjectableReferenceState InjectorImpl.JitLimitation some limitations on what just in time bindings are allowed.InternalFlags.CustomClassLoadingOption The options for Guice custom class loading.InternalFlags.IncludeStackTraceOption The options for Guice stack trace collection.InternalFlags.NullableProvidesOption InternalProviderInstanceBindingImpl.InitializationTiming RealMapBinder.BindingSelection.InitializationState RealOptionalBinder.Source -
Exception Summary Exception Description ErrorsException Indicates that a result could not be returned while preparing or resolving a binding.InternalProvisionException A checked exception for provisioning errors. -
Annotation Types Summary Annotation Type Description Annotations.TestAnnotation Element An internal binding annotation applied to each element in a multibinding.RealOptionalBinder.Actual RealOptionalBinder.Default UniqueAnnotations.Internal