Google Guice Just-in-time Bindings
As bindings are defined in Binding Module, Guice uses them whenever it needs to inject dependencies. In case bindings are not present, it can attempt to create just-in-time bindings. Bindings present in binding module are called explicit bindings and are of higher precedence whereas just-in-time bindings are called implicit bindings. If both type of bindings are present, explicit bindings are considered for mapping.
Following are the examples of three types of Just-in-time bindings.
Read full article from Google Guice Just-in-time Bindings
No comments:
Post a Comment