You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Dan Haywood (JIRA)" <ji...@apache.org> on 2014/02/14 08:58:19 UTC

[jira] [Created] (ISIS-696) Extra overload for BookmarkService for lookup with downcast (making more consistent with API of MementoService).

Dan Haywood created ISIS-696:
--------------------------------

             Summary: Extra overload for BookmarkService for lookup with downcast (making more consistent with API of MementoService).
                 Key: ISIS-696
                 URL: https://issues.apache.org/jira/browse/ISIS-696
             Project: Isis
          Issue Type: New Feature
          Components: Core
    Affects Versions: core-1.3.0
            Reporter: Dan Haywood
            Assignee: Dan Haywood
            Priority: Trivial
             Fix For: core-1.4.0


MementoService provides accessor methods in the form:

<T> T MementoService#get(String,Class<T>)

where the Class<T> is used to check the type of the accessed value within the memento, and to downcast appropriately.

In BookmarkService, the lookup method is simply:

Object BookmarkService#lookup(Bookmark)

Instead, suggest:

<T> T BookmarkService#lookup(Bookmark, Class<T>)



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)