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

OSGI components shouldn't call the *ServiceUtil class

    Details

    • Story Points:
      1
    • Fix Priority:
      3

      Description

      OSGI components should add references to the Services instead of calling the "ServiceUtil" class.

      See one example here: https://github.com/brianchandotcom/liferay-portal/pull/30658

      To avoid accidnetally creating a circular dependency by converting *ServiceUtil to @Refence inject, we should add an expection rule:

      "When the OSGi Component and the *Service Spring bean are within the same module, don't make this change."

      A typical scenario is, ShoppingCategoryPermission <--> ShoppingCategoryLocalServiceImpl.

        Attachments

          Issue Links

          There are no Sub-Tasks for this issue.

            Activity

              People

              Assignee:
              melody.wu Melody Wu
              Reporter:
              julio.camarero Julio Camarero (Inactive)
              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, 2 weeks, 4 days ago

                  Packages

                  Version Package
                  7.0.0 Alpha 2