You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2013/07/26 09:59:49 UTC

[jira] [Resolved] (SLING-2981) Create simpler but more flexible api

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

Carsten Ziegeler resolved SLING-2981.
-------------------------------------

    Resolution: Fixed

Added a new api in rev 1507208

This is a builder based approach which allows us to add more options in the future without the need to add more methods to the scheduler
In addition, the methods now return a boolean rather than throwing an exception
And the number of possibilities with the new api is reduced as some of the old methods have some overlap which now could be reduced down to 5 ways.
                
> Create simpler but more flexible api
> ------------------------------------
>
>                 Key: SLING-2981
>                 URL: https://issues.apache.org/jira/browse/SLING-2981
>             Project: Sling
>          Issue Type: Improvement
>          Components: Commons
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>             Fix For: Commons Scheduler 2.4.0
>
>
> The current api of the scheduler service has two problems:
> - each time we add a new feature, we have more or less to duplicate the methods and add new methods with exactly this new feature
> - most of the methods throw checked and unchecked exceptions although this is usually useless for the client

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira