Skip navigation links
A B C D E F G H I M N P R S T V 

A

AbstractProducer<T> - Class in dagger.producers.internal
An abstract Producer implementation that memoizes the result of its compute method.
AbstractProducer() - Constructor for class dagger.producers.internal.AbstractProducer
 
AbstractProducer(Provider<ProductionComponentMonitor>, ProducerToken) - Constructor for class dagger.producers.internal.AbstractProducer
 
addCallbackTo(ListenableFuture<T>) - Method in class dagger.producers.monitoring.ProducerMonitor
Adds this monitor's completion methods as a callback to the future.

B

build() - Method in class dagger.producers.internal.MapOfProducerProducer.Builder
Returns a new MapOfProducerProducer.
builder(int) - Static method in class dagger.producers.internal.MapOfProducerProducer

C

compute(ProducerMonitor) - Method in class dagger.producers.internal.AbstractProducer
Computes this producer's future, which is then cached in AbstractProducer.get().
compute(ProducerMonitor) - Method in class dagger.producers.internal.MapOfProducedProducer
 
compute(ProducerMonitor) - Method in class dagger.producers.internal.MapOfProducerProducer
 
compute(ProducerMonitor) - Method in class dagger.producers.internal.MapProducer
 
compute(ProducerMonitor) - Method in class dagger.producers.internal.SetOfProducedProducer
Returns a future Set of Produced values whose iteration order is that of the elements given by each of the producers, which are invoked in the order given at creation.
compute(ProducerMonitor) - Method in class dagger.producers.internal.SetProducer
Returns a future Set whose iteration order is that of the elements given by each of the producers, which are invoked in the order given at creation.
create(Producer<Map<K, Producer<V>>>) - Static method in class dagger.producers.internal.MapOfProducedProducer
Returns a producer of Map<K, Produced<V>>, where the map is derived from the given map of producers by waiting for those producers' resulting futures.
create(Producer<Map<K, Producer<V>>>) - Static method in class dagger.producers.internal.MapProducer
Returns a producer of Map<K, V>, where the map is derived from the given map of producers by waiting for those producers' resulting futures.
create() - Static method in class dagger.producers.internal.SetOfProducedProducer
 
create(Producer<Set<T>>...) - Static method in class dagger.producers.internal.SetOfProducedProducer
Returns a new producer that creates Set futures from the union of the given Producer instances.
create() - Static method in class dagger.producers.internal.SetProducer
 
create(Producer<Set<T>>) - Static method in class dagger.producers.internal.SetProducer
Returns the supplied producer.
create(Producer<Set<T>>...) - Static method in class dagger.producers.internal.SetProducer
Returns a new producer that creates Set futures from the union of the given Producer instances.
create(Class<?>) - Static method in class dagger.producers.monitoring.ProducerToken
Creates a token for a class token that represents the generated factory for a producer method.
create(String) - Static method in class dagger.producers.monitoring.ProducerToken
Creates a token for a producer method.
create(Object) - Method in class dagger.producers.monitoring.ProductionComponentMonitor.Factory
Creates a component-specific monitor when the component is created.
create(Object) - Method in interface dagger.producers.monitoring.ProductionComponentTimingRecorder.Factory
Creates a component-specific timing recorder when the component is created.
create(Object) - Method in class dagger.producers.monitoring.TimingProductionComponentMonitor.Factory
 
createFutureProduced(ListenableFuture<T>) - Static method in class dagger.producers.internal.Producers
Returns a future of Produced that represents the completion (either success or failure) of the given future.
createFutureSingletonSet(ListenableFuture<T>) - Static method in class dagger.producers.internal.Producers
Returns a future of a Set that contains a single element: the result of the input future.
createMonitorForComponent(Provider<?>, Provider<Set<ProductionComponentMonitor.Factory>>) - Static method in class dagger.producers.monitoring.internal.Monitors
Creates a new monitor for the given component, from a set of monitor factories.

D

dagger.producers - package dagger.producers
 
dagger.producers.internal - package dagger.producers.internal
 
dagger.producers.monitoring - package dagger.producers.monitoring
This package provides hooks for monitoring producers.
dagger.producers.monitoring.internal - package dagger.producers.monitoring.internal
 
delegatingProductionComponentMonitorFactory(Collection<? extends ProductionComponentMonitor.Factory>) - Static method in class dagger.producers.monitoring.internal.Monitors
Returns a monitor factory that delegates to the given factories, and ensures that any method called on this object, even transitively, does not throw a RuntimeException or return null.
delegatingProductionComponentTimingRecorderFactory(Collection<ProductionComponentTimingRecorder.Factory>) - Static method in class dagger.producers.monitoring.TimingRecorders
Returns a timing recorder factory that delegates to the given factories, and ensures that any method called on this object, even transitively, does not throw a RuntimeException or return null.

E

empty() - Static method in class dagger.producers.internal.MapOfProducerProducer
Returns a producer of an empty map.
equals(Object) - Method in class dagger.producers.monitoring.ProducerToken
Two tokens are equal if they represent the same method.
equals(Object) - Method in class dagger.producers.Produced
Two Produced objects compare equal if both are successful with equal values, or both are failed with equal exceptions.

F

Factory() - Constructor for class dagger.producers.monitoring.ProductionComponentMonitor.Factory
 
Factory(ProductionComponentTimingRecorder.Factory) - Constructor for class dagger.producers.monitoring.TimingProductionComponentMonitor.Factory
 
failed(Throwable) - Method in class dagger.producers.monitoring.ProducerMonitor
Called when the producer's future has failed with an exception.
failed(Throwable) - Static method in class dagger.producers.Produced
Returns a failed Produced, whose Produced.get() will throw an ExecutionException with the given cause.

G

get() - Method in class dagger.producers.internal.AbstractProducer
 
get() - Method in class dagger.producers.Produced
Returns the result of a production.
get() - Method in interface dagger.producers.Producer
Returns a future representing a running task that produces a value.

H

hashCode() - Method in class dagger.producers.monitoring.ProducerToken
Returns an appropriate hash code to match ProducerToken.equals(Object).
hashCode() - Method in class dagger.producers.Produced
Returns an appropriate hash code to match Produced.equals(Object).

I

immediateFailedProducer(Throwable) - Static method in class dagger.producers.internal.Producers
Returns a producer that fails with the given exception.
immediateProducer(T) - Static method in class dagger.producers.internal.Producers
Returns a producer that succeeds with the given value.

M

MapOfProducedProducer<K,V> - Class in dagger.producers.internal
A Producer implementation used to implement Map bindings.
MapOfProducerProducer<K,V> - Class in dagger.producers.internal
A Producer implementation used to implement Map bindings.
MapOfProducerProducer.Builder<K,V> - Class in dagger.producers.internal
A builder to help build the MapOfProducerProducer
MapProducer<K,V> - Class in dagger.producers.internal
A Producer implementation used to implement Map bindings.
methodFinished() - Method in class dagger.producers.monitoring.ProducerMonitor
Called when the producer method has finished executing.
methodStarting() - Method in class dagger.producers.monitoring.ProducerMonitor
Called when the producer method is about to start executing.
Monitors - Class in dagger.producers.monitoring.internal
Utility methods relating to monitoring, for use in generated producers code.

N

noOp() - Static method in class dagger.producers.monitoring.ProducerMonitor
Returns a monitor that does no monitoring.
noOp() - Static method in class dagger.producers.monitoring.ProducerTimingRecorder
Returns a producer recorder that does nothing.
noOp() - Static method in class dagger.producers.monitoring.ProductionComponentMonitor.Factory
Returns a factory that returns no-op monitors.
noOp() - Static method in class dagger.producers.monitoring.ProductionComponentMonitor
Returns a monitor that does no monitoring.
noOpProductionComponentMonitorProvider() - Static method in class dagger.producers.monitoring.internal.Monitors
Returns a provider of a no-op component monitor.
noOpProductionComponentTimingRecorder() - Static method in class dagger.producers.monitoring.TimingRecorders
Returns a component recorder that returns no-op producer recorders.
noOpProductionComponentTimingRecorderFactory() - Static method in class dagger.producers.monitoring.TimingRecorders
Returns a recorder factory that returns no-op component recorders.

P

Produced<T> - Class in dagger.producers
An interface that represents the result of a production of type T, or an exception that was thrown during that production.
Producer<T> - Interface in dagger.producers
An interface that represents the production of a type T.
producerFromProvider(Provider<T>) - Static method in class dagger.producers.internal.Producers
Returns a producer that immediately executes the binding logic for the given provider every time it is called.
ProducerModule - Annotation Type in dagger.producers
Annotates a class that contributes Produces bindings to the production component.
ProducerMonitor - Class in dagger.producers.monitoring
A hook for monitoring the execution of individual producer methods.
ProducerMonitor() - Constructor for class dagger.producers.monitoring.ProducerMonitor
 
producerMonitorFor(ProducerToken) - Method in class dagger.producers.monitoring.ProductionComponentMonitor
Returns a monitor for an individual producer method.
producerMonitorFor(ProducerToken) - Method in class dagger.producers.monitoring.TimingProductionComponentMonitor
 
Producers - Class in dagger.producers.internal
Utility methods for use in generated producer code.
ProducerTimingRecorder - Class in dagger.producers.monitoring
A hook for recording the timing of the execution of individual producer methods.
ProducerTimingRecorder() - Constructor for class dagger.producers.monitoring.ProducerTimingRecorder
 
producerTimingRecorderFor(ProducerToken) - Method in interface dagger.producers.monitoring.ProductionComponentTimingRecorder
Returns a timing recorder for an individual producer method.
ProducerToken - Class in dagger.producers.monitoring
A token that represents an individual producer method.
Produces - Annotation Type in dagger.producers
Annotates methods of a producer module to create a production binding.
Produces.Type - Enum in dagger.producers
The type of binding into which the return type of the annotated method contributes.
Production - Annotation Type in dagger.producers
Qualifies a type that will be provided to the framework for use internally.
ProductionComponent - Annotation Type in dagger.producers
Annotates an interface or abstract class for which a fully-formed, dependency-injected implementation is to be generated from a set of ProductionComponent.modules().
ProductionComponent.Builder - Annotation Type in dagger.producers
A builder for a component.
ProductionComponentMonitor - Class in dagger.producers.monitoring
A hook for monitoring execution of production components.
ProductionComponentMonitor() - Constructor for class dagger.producers.monitoring.ProductionComponentMonitor
 
ProductionComponentMonitor.Factory - Class in dagger.producers.monitoring
 
ProductionComponentTimingRecorder - Interface in dagger.producers.monitoring
A hook for recording timing of the execution of production components.
ProductionComponentTimingRecorder.Factory - Interface in dagger.producers.monitoring
 
ProductionImplementation - Annotation Type in dagger.producers.internal
Qualifies a type that will be used as an internal implementation detail in the framework.
ProductionScope - Annotation Type in dagger.producers
A scope annotation for provision bindings that are tied to the lifetime of a ProductionComponent or ProductionSubcomponent.
ProductionSubcomponent - Annotation Type in dagger.producers
A subcomponent that inherits the bindings from a parent Component, Subcomponent, ProductionComponent, or ProductionSubcomponent.
ProductionSubcomponent.Builder - Annotation Type in dagger.producers
A builder for a subcomponent.
put(K, Producer<V>) - Method in class dagger.producers.internal.MapOfProducerProducer.Builder
Associates k with producerOfValue in Builder.

R

recordFailure(Throwable, long) - Method in class dagger.producers.monitoring.ProducerTimingRecorder
Reports that the producer's future has failed with the given statistics.
recordMethod(long, long) - Method in class dagger.producers.monitoring.ProducerTimingRecorder
Reports that the producer method has finished executing with the given statistics.
recordSkip(Throwable) - Method in class dagger.producers.monitoring.ProducerTimingRecorder
Reports that the producer was skipped because one of its inputs failed.
recordSuccess(long) - Method in class dagger.producers.monitoring.ProducerTimingRecorder
Reports that the producer's future has succeeded with the given statistics.
requested() - Method in class dagger.producers.monitoring.ProducerMonitor
Called when the producer's output is requested; that is, when the first method is called that requires the production of this producer's output.

S

SetOfProducedProducer<T> - Class in dagger.producers.internal
A Producer implementation used to implement Set bindings.
SetProducer<T> - Class in dagger.producers.internal
A Producer implementation used to implement Set bindings.
succeeded(Object) - Method in class dagger.producers.monitoring.ProducerMonitor
Called when the producer’s future has completed successfully with a value.
successful(T) - Static method in class dagger.producers.Produced
Returns a successful Produced, whose Produced.get() will return the given value.

T

TimingProductionComponentMonitor - Class in dagger.producers.monitoring
A monitor that measures the timing of the execution of a production component, and logs those timings with the given recorder.
TimingProductionComponentMonitor.Factory - Class in dagger.producers.monitoring
 
TimingRecorders - Class in dagger.producers.monitoring
Utility methods relating to timing.
toString() - Method in class dagger.producers.monitoring.ProducerToken
Returns a representation of the method.

V

valueOf(String) - Static method in enum dagger.producers.Produces.Type
Returns the enum constant of this type with the specified name.
values() - Static method in enum dagger.producers.Produces.Type
Returns an array containing the constants of this enum type, in the order they are declared.
A B C D E F G H I M N P R S T V 
Skip navigation links

Copyright © 2016 Google, Inc.. All Rights Reserved.