Uploaded image for project: 'PUBLIC - Liferay Documentation'
  1. PUBLIC - Liferay Documentation
  2. LRDOCS-749

Add recommendation to extend our BaseImpls instead of implementing the interfaces

    Details

    • Type: New Article
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Fix Version/s: 6.2.x
    • Component/s: Core Infrastructure
    • Labels:
      None

      Description

      When the developers are extending the portal, they should try to avoid implementing directly the portal's interfaces. The best practice is to extend the base implementation from the portal, we usually have that.

      The reason is that in some cases, we need to add new methods to the interfaces in fix packs to fix an issue completely (e.g. adding a new method to a service). If the user implements the API directly, the patch would break the customization. If the basic implementation is extended, the change won't be noticed as we would add the new methods to the basic impl.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                6.2.x