April 2018
Intermediate to advanced
246 pages
6h 11m
English
Fields can be injected by the @Inject annotation in Guice. This is a simple and short injection, but makes the field untestable if used with the private access modifier. It is advisable to avoid the following:
@Inject private NotificationService notificationService;