T- type to inject members of
public interface MembersInjector<T>
T. Ignores the presence or absence of an injectable constructor.
void injectMembers(T instance)
instance. 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.
instance- to inject members on. May be
Copyright © 2006–2018 Google, Inc.. All rights reserved.