Google Guice - Optional Injection
Injection is a process of injecting dependency into an object. Optional injection means injecting the dependency if exists. Method and Field injections may be optionally dependent and should have some default value if dependency is not present. See the example below.
Read full article from Google Guice - Optional Injection
No comments:
Post a Comment