incubator-droids-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Frovarp (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DROIDS-126) Bypass Protocol and Parser factories and make CrawlingWorker ask for it's collaborators directly
Date Fri, 15 Jun 2012 02:46:44 GMT

     [ 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

        

Mime
View raw message