getProvider() statements:
Provider<PaymentService> paymentServiceProvider
= getProvider(PaymentService.class);
| Modifier and Type | Field and Description |
|---|---|
| private Provider | |
| private final Dependency | |
| private final Object |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public <T> T | acceptVisitor(ElementVisitor<T>
to call back on visitor)Implements com. |
| public void | applyTo(Binder
to apply configuration element to binder)Implements com. |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| public Provider | |
| public Dependency | |
| public Key | |
| public Provider | |
| public Object | getSource()
Implements com. |
| public int | |
| public void | |
| public String |
| delegate | back to summary |
|---|---|
| private Provider<T> delegate | |
| dependency | back to summary |
|---|---|
| private final Dependency<T> dependency | |
| source | back to summary |
|---|---|
| private final Object source | |
| ProviderLookup | back to summary |
|---|---|
| public ProviderLookup(Object source, Key<T> key) | |
| ProviderLookup | back to summary |
|---|---|
public ProviderLookup(Object source, Dependency<T> dependency)
| |
| acceptVisitor | back to summary |
|---|---|
| public <T> T acceptVisitor(ElementVisitor<T> visitor) Implements com. Doc from com. Accepts an element visitor. Invokes the visitor method specific to this element's type.
| |
| applyTo | back to summary |
|---|---|
| public void applyTo(Binder binder) Implements com. Doc from com. Writes this module element to the given binder (optional operation). | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getDelegate | back to summary |
|---|---|
| public Provider Returns the delegate provider, or | |
| getDependency | back to summary |
|---|---|
public Dependency
| |
| getKey | back to summary |
|---|---|
| public Key | |
| getProvider | back to summary |
|---|---|
| public Provider Returns the looked up provider. The result is not valid until this lookup has been initialized,
which usually happens when the injector is created. The provider will throw an | |
| getSource | back to summary |
|---|---|
| public Object getSource() Implements com. Doc from com. Returns an arbitrary object containing information about the "place" where this element was configured. Used by Guice in the production of descriptive error messages. Tools might specially handle types they know about;
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| initializeDelegate | back to summary |
|---|---|
| public void initializeDelegate(Provider<T> delegate) Sets the actual provider.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |