requestInjection() statements:
requestInjection(serviceInstance);
| Modifier and Type | Field and Description |
|---|---|
| private final T | |
| private final Object | |
| private final TypeLiteral |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public <R> R | acceptVisitor(ElementVisitor<R>
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 Set | Returns: a possibly empty set of injection points. The set has a specified iteration order. All fields are returned and then all methods. Within the fields, supertype fields are returned before subtype fields. Similarly, supertype methods are returned before subtype methods.Returns the instance methods and fields of |
| public T | |
| public Object | getSource()
Implements com. |
| public TypeLiteral | |
| public int |
| instance | back to summary |
|---|---|
| private final T instance | |
| source | back to summary |
|---|---|
| private final Object source | |
| type | back to summary |
|---|---|
| private final TypeLiteral<T> type | |
| InjectionRequest | back to summary |
|---|---|
| public InjectionRequest(Object source, TypeLiteral<T> type, T instance) | |
| acceptVisitor | back to summary |
|---|---|
| public <R> R acceptVisitor(ElementVisitor<R> 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. | |
| getInjectionPoints | back to summary |
|---|---|
| public Set Returns the instance methods and fields of
| |
| getInstance | back to summary |
|---|---|
| public T getInstance() Returns the instance that injection is being requested on. This may be null for injection requests returned from an Injector, to allow the injector to reclaim memory. | |
| 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;
| |
| getType | back to summary |
|---|---|
| public TypeLiteral | |
| 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
| |