Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-2511

Return application-scoped singleton instances from factory implementations where possible

    Details

      Description

      The constructor for FacesContextHelperFactoryImpl returns an application-scoped singleton instance of com.liferay.faces.util.context.internal.FacesContextHelperImpl because FacesContextHelperImpl.java does not contain any private data members and is thread-safe.

      For the sake of performance, this pattern should be followed for all factory implementations where possible. A careful study for thread-safety must be performed before any factory is refactored to return an application-scoped singleton.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package