Bypass Protocol and Parser factories and make CrawlingWorker ask for it's
collaborators directly
------------------------------------------------------------------------------------------------
Key: DROIDS-126
URL: https://issues.apache.org/jira/browse/DROIDS-126
Project: Droids
Issue Type: Improvement
Reporter: Eugen Paraschiv
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.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira