[
https://issues.apache.org/jira/browse/JAMES-1732?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Antoine Duprat resolved JAMES-1732.
-----------------------------------
Resolution: Fixed
merged
> James init sequence should respect Dependency graph
> ---------------------------------------------------
>
> Key: JAMES-1732
> URL: https://issues.apache.org/jira/browse/JAMES-1732
> Project: James Server
> Issue Type: Bug
> Components: James Core
> Reporter: Antoine Duprat
> Assignee: Antoine Duprat
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]