Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-60684

Not all ServiceTracker collection factories follow the same pattern regarding the create/open lifecycle

    Details

      Description

      Internally, all service tracker backed collections need to be opened/closed explicitly, but the way this is handled is not entirely consistent:

      • ServiceTrackerCollections.list() always opens the underlying service tracker,
      • ServiceTrackerCollections map factory methods never opens the tracker, and the user is responsible of doing that.

      The ServiceTrackerCollections factory will be changed to follow the patterns used osgi-service-tracker-collections module, where two kinds of factory methods are provided:

      • regular ones that never open the collection (list(), singleValueMap(), etc)
      • variants that always open the collection (openList(), openSingleValueMap(), etc)

        Attachments

          Activity

            People

            Assignee:
            hong.zhao Hong Zhao
            Reporter:
            adolfo.perez Adolfo Pérez
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              5 years, 1 week, 3 days ago

                Packages

                Version Package
                7.0.0 Alpha 3