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

Bypass Protocol and Parser factories and make CrawlingWorker ask for it's collaborators directly

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.2.0
    • 0.3.0
    • core
    • None

    Description

      The factory usage in CrawlingWorker and CrawlingDroids makes the API hard to use and breaks the Law of Demeter - instead of the worker asking for what it needs, it has to first ask for the factory and then retrieve it's collaborator from it:
      droid.getProtocolFactory().getProtocol(uri);
      droid.getParserFactory().getParser(contentType);
      This makes the API harder to use and introduces unnecessary complexity into the API.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: