Provider.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| private static class |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static <T> Provider | |
| public static <T> Provider | |
| public static <T> Provider | of(final T
the instance that should always be provided. This is also permitted to be null,
to enable aggressive testing, although in real life a Guice-supplied Provider will never
return null. instance)Returns a provider which always provides |
| Providers | back to summary |
|---|---|
| private Providers() | |
| guicify | back to summary |
|---|---|
| public static <T> Provider Deprecated Marked as deprecated as a hint to users that calling this is unnecessary, because the provider is already a guice Provider. Returns itself. This exists primarily to avoid ambiguous method reference compile errors when calling guicify with a Guice provider.
| |
| guicify | back to summary |
|---|---|
| public static <T> Provider Returns a Guice-friendly
| |
| of | back to summary |
|---|---|
| public static <T> Provider Returns a provider which always provides
| |
| Modifier and Type | Field and Description |
|---|---|
| private final T |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| public T | |
| public int | |
| public String |
| instance | back to summary |
|---|---|
| private final T instance | |
| ConstantProvider | back to summary |
|---|---|
| private ConstantProvider(T instance) | |
| 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. | |
| get | back to summary |
|---|---|
| public T get() Implements com. Doc from com. Provides an instance of
| |
| 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
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| public T | |
| public int | |
| public String |
| delegate | back to summary |
|---|---|
| protected final Provider<T> delegate | |
| GuicifiedJakartaProvider | back to summary |
|---|---|
| private GuicifiedJakartaProvider(Provider<T> delegate) | |
| 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. | |
| get | back to summary |
|---|---|
| public T get() Implements com. Doc from com. Provides an instance of
| |
| 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
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Modifier and Type | Field and Description |
|---|---|
| private final Set |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Set | getDependencies()
Implements com. |
| pack-priv void |
| dependencies | back to summary |
|---|---|
| private final Set<Dependency<?>> dependencies | |
| GuicifiedJakartaProviderWithDependencies | back to summary |
|---|---|
| private GuicifiedJakartaProviderWithDependencies(Set<Dependency<?>> dependencies, Provider<T> delegate) | |
| getDependencies | back to summary |
|---|---|
| public Set Implements com. Doc from com. Returns the known dependencies for this type. If this has dependencies whose values are not
known statically, a dependency for the
| |
| initialize | back to summary |
|---|---|
pack-priv void initialize(Injector injector)
| |