Uploaded image for project: 'Droids'
  1. Droids
  2. DROIDS-127

GenericFactory should instantiate it's own internal map

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 0.2.0
    • Fix Version/s: 0.3.0
    • Component/s: core
    • Labels:
      None

      Description

      The map is the core of the factory. GenericFactory should instantiate it's own map (as it's standard practice) instead of providing a setter for.
      There are many reasons for this:

      • the map is not an optional collaborator for the factory but a required one without which the factory cannot function
      • simplifies the API
      • each time the setter is used in the current codebase, it's used simply to inject an empty HashMap

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              eugenparaschiv Eugen Paraschiv
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: