[ 
https://issues.apache.org/jira/browse/DROIDS-126?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Eugen Paraschiv updated DROIDS-126:
-----------------------------------

          Component/s: core
        Fix Version/s: 0.0.2
    Affects Version/s: 0.0.2

> 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
>          Components: core
>    Affects Versions: 0.0.2
>            Reporter: Eugen Paraschiv
>             Fix For: 0.0.2
>
>
> 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

        

Reply via email to