Uploaded image for project: 'Policy Framework'
  1. Policy Framework
  2. POLICY-1387

Rework Topic factories

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Low Low
    • Dublin Release
    • None
    • None
    • None

      Current design of Topic factories in policy-common module is at least bad.

      There are tons of copy-pasted code. The code is copy-pasted not only between the factories (for example UepTopicSourceFactory vs DmaapTopicSourceFactory) but also inside methods (build() function in every factory is a great example here).

      I would like to rework this whole structure by:

      1) Implementing a common Factory class and move all generic code there

      2) Rework the way that we handle properties today by removing a common properties interface and creating suitable enums in responsible classes

       

            kopasiak kopasiak
            kopasiak kopasiak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: