Uploaded image for project: 'James Mailbox'
  1. James Mailbox
  2. MAILBOX-317

Refactoring StoreManager constructor and hierarchy

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • master
    • None
    • store
    • None

    Description

      StoreMailboxManager has 5 different constructors and it's hierarchy handles a total of ~30 constuctors.

      We should rely on a single constructor on StoreMailboxManager, and each class in the hierarchy should only have a single constructor.

      To do this:

      • We need to remove MailboxManager the responsibility of initialising the event system: it should be passed well initialized to it.
      • We should extract annotations. Thus configuration of annotations limit can be handled at THAT level and not impact the entire classhierarchy.

      Finally, we can also rely more on InMemoryIntegrationResources to limit direct calls to raw constructors.

      I really believe such changes, even painful, brings a :

      • way more separated responsibility
      • clearer code

      Attachments

        Activity

          People

            Unassigned Unassigned
            btellier Benoit Tellier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: