Uploaded image for project: 'Isis'
  1. Isis
  2. ISIS-696

Extra overload for BookmarkService for lookup with downcast (making more consistent with API of MementoService).

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: core-1.3.0
    • Fix Version/s: core-1.4.0
    • Component/s: Core
    • Labels:
      None

      Description

      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>)

        Attachments

          Activity

            People

            • Assignee:
              danhaywood Dan Haywood
              Reporter:
              danhaywood Dan Haywood
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: