Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Configurable classes are not initialized in the good order under Guice.
Given 3 classes A, B, C. A depends on C B depends on A and C. A & B are Configurable (they have a configure method). A has a getDomain method that only works once A.configure has been called. B calls A.getDomain in its configure method. Using a guice Multibinder, make sure a Configurer class call B.configure before A.configure and prove that this fails. Then try to register a listener on guice to keep creation ordering and use this ordering to call configure methods. Finally implement this init strategy to James.