Package com.google.inject
Interface MembersInjector<T>
-
- Type Parameters:
T
- type to inject members of
public interface MembersInjector<T>
Injects dependencies into the fields and methods on instances of typeT
. Ignores the presence or absence of an injectable constructor.- Since:
- 2.0
- Author:
- crazybob@google.com (Bob Lee), jessewilson@google.com (Jesse Wilson)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
injectMembers(T instance)
Injects dependencies into the fields and methods ofinstance
.
-
-
-
Method Detail
-
injectMembers
void injectMembers(T instance)
Injects dependencies into the fields and methods ofinstance
. Ignores the presence or absence of an injectable constructor.Whenever Guice creates an instance, it performs this injection automatically (after first performing constructor injection), so if you're able to let Guice create all your objects for you, you'll never need to use this method.
- Parameters:
instance
- to inject members on. May benull
.
-
-