You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A module whose configuration information is hidden from its environment by default. Only bindings that are explicitly exposed will be available to other modules and to the users of the injector. This module may expose the bindings it creates and the bindings of the modules it installs
However I'm not sure what is hidden configuration information
As far as I know, the behavior of PrivateModule is that:
if a binding is not exposed, then you can not declare it(1)
(1) let to this confuse situation that you can not using combine/override with following modules:
a PrivateModule P which has non-exposed binding of class C
The error is A binding to ... was already configured ...., which recognize configuration environment!
So do you think that PrivateModule documentation should be updated? And if it is possible, an example which describe why PrivateModule exists would be great.
Thank you in advance.
The text was updated successfully, but these errors were encountered:
Hello Guice,
Documentation of PrivateModule say that:
However I'm not sure what is
hidden configuration information
As far as I know, the behavior of PrivateModule is that:
(1) let to this confuse situation that you can not using
combine
/override
with following modules:P
which has non-exposed binding of classC
N
which has also binding of classC
The error is
A binding to ... was already configured ....
, which recognizeconfiguration environment
!So do you think that PrivateModule documentation should be updated? And if it is possible, an example which describe why PrivateModule exists would be great.
Thank you in advance.
The text was updated successfully, but these errors were encountered: