getMembersInjector() statements:
MembersInjector<PaymentService> membersInjector
= getMembersInjector(PaymentService.class);
| Modifier and Type | Field and Description |
|---|---|
| private MembersInjector | |
| private final Object | |
| private final TypeLiteral |
| Access | Constructor and Description |
|---|---|
| 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 MembersInjector | |
| 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 that will be injected to fulfill this request. |
| public MembersInjector | |
| public Object | getSource()
Implements com. |
| public TypeLiteral | |
| public int | |
| public void |
| delegate | back to summary |
|---|---|
| private MembersInjector<T> delegate | |
| source | back to summary |
|---|---|
| private final Object source | |
| type | back to summary |
|---|---|
| private final TypeLiteral<T> type | |
| MembersInjectorLookup | back to summary |
|---|---|
| public MembersInjectorLookup(Object source, TypeLiteral<T> type) | |
| 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 MembersInjector Returns the delegate members injector, or | |
| getInjectionPoints | back to summary |
|---|---|
| public Set Returns the instance methods and fields that will be injected to fulfill this request.
| |
| getMembersInjector | back to summary |
|---|---|
| public MembersInjector Returns the looked up members injector. The result is not valid until this lookup has been
initialized, which usually happens when the injector is created. The members injector 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;
| |
| getType | back to summary |
|---|---|
| public TypeLiteral Gets the type containing the members to be injected. | |
| 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(MembersInjector<T> delegate) Sets the actual members injector.
| |