Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-1732

James init sequence should respect Dependency graph

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: James Core
    • Labels:
      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.

        Attachments

          Activity

            People

            • Assignee:
              aduprat Antoine Duprat
              Reporter:
              aduprat Antoine Duprat
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: