Open kametic opened 10 years ago
Allows the following
@Inject @Nullable MyService myService;
If myService does not have a binding defined, 1) catch CreationException 2) remove the binding from the module using Guice SPI. 3) restart guice
@Nullable marks an injection as optionnal
Allows the following
@Inject @Nullable MyService myService;
If myService does not have a binding defined, 1) catch CreationException 2) remove the binding from the module using Guice SPI. 3) restart guice
@Nullable marks an injection as optionnal