james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Duprat (JIRA)" <server-...@james.apache.org>
Subject [jira] [Closed] (JAMES-1732) James init sequence should respect Dependency graph
Date Tue, 17 May 2016 07:07:12 GMT

     [ https://issues.apache.org/jira/browse/JAMES-1732?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Antoine Duprat closed JAMES-1732.

> 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

To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org

View raw message