You are viewing a plain text version of this content. The canonical link for it is here.
Posted to droids-dev@incubator.apache.org by "Richard Frovarp (JIRA)" <ji...@apache.org> on 2012/06/15 02:46:44 UTC

[jira] [Updated] (DROIDS-126) Bypass Protocol and Parser factories and make CrawlingWorker ask for it's collaborators directly

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

Richard Frovarp updated DROIDS-126:
-----------------------------------

    Fix Version/s:     (was: 0.2.0)
                   0.3.0
    
> 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.2.0
>            Reporter: Eugen Paraschiv
>             Fix For: 0.3.0
>
>
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira