vishesh kamdar
2016-08-26 20:51:18 UTC
So I'm trying to do something like this inside the Module class
@Inject(optional = true)@Named("TotalQuantity")private int totalQuantity = 5
Is this the correct way to set the default value, if the dependency is not
provided?
@Inject(optional = true)@Named("TotalQuantity")private int totalQuantity = 5
Is this the correct way to set the default value, if the dependency is not
provided?
--
You received this message because you are subscribed to the Google Groups "google-guice" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-guice+***@googlegroups.com.
To post to this group, send email to google-***@googlegroups.com.
Visit this group at https://groups.google.com/group/google-guice.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-guice/71a4c04c-dd19-4557-ac4c-909c4b2bb74a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "google-guice" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-guice+***@googlegroups.com.
To post to this group, send email to google-***@googlegroups.com.
Visit this group at https://groups.google.com/group/google-guice.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-guice/71a4c04c-dd19-4557-ac4c-909c4b2bb74a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.