T
- type to inject members ofpublic interface MembersInjector<T>
T
. Ignores the
presence or absence of an injectable constructor.injectMembers(T)
cannot accept
null
)Modifier and Type | Method and Description |
---|---|
void |
injectMembers(T instance)
Injects dependencies into the fields and methods of
instance . |
void injectMembers(T instance)
instance
. Ignores the presence or
absence of an injectable constructor.
Whenever the object graph creates an instance, it performs this injection automatically (after first performing constructor injection), so if you're able to let the object graph create all your objects for you, you'll never need to use this method.
instance
- into which members are to be injectedNullPointerException
- if instance
is null
Copyright © 2015 Google, Inc.. All rights reserved.