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

Deprecate XyzUtil.setPersistence and setService

    Details

      Description

      XyzUtil.setPersistence and setService has not been used since 4.x. We no longe set the service from Spring but we look them up as we need them. Allowing someone to set it can also be dangerous because the other injected references may be different from the one that is set.

      For example, if we overwrote UserLocalServiceUtil.setService, that does not mean that GroupLocalServiceImpl's injected reference to userLocalService is changed. If you want to modify it, use a hook.

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            brian.chan Brian Chan
            Participants of an Issue:
            Recent user:
            Brian Wulbern
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              9 years, 15 weeks, 1 day ago

                Packages

                Version Package
                6.1.1 CE GA2
                6.1.20 EE GA2
                --Sprint 11/12
                6.2.0 CE M2