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

Add MessageContextFactory and refactor MessageContext implementations to take advantage of factory discovery

    Description

    com.liferay.faces.util.context.MessageContext is currently an abstract class with a getInstance() method. This needs to be changed so that MessageContext implementations can take advantage of factory discovery and participate in a chain-of-delegation.

    The MessageContext.getInstance() method will be deprecated in the 3.x branches and removed in the 4.x branches. From now on, programatic access to the MessageContext should be accomplished via factory lookup:

    MessageContextFactory messageContextFactory = (MessageContextFactory) FactoryExtensionFinder.getFactory(MessageContextFactory.class);
    MessageContext messageContext = messageContextFactory.getMessageContext();
    

      Attachments

        Activity

          People

          Assignee:
          neil.griffin Neil Griffin
          Reporter:
          neil.griffin Neil Griffin
          Participants of an Issue:
          Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

            Dates

            Created:
            Updated:
            Resolved:

              Packages

              Version Package
              liferay-faces-2.1.5-ga6
              liferay-faces-2.2.5-ga6
              liferay-faces-3.0.5-legacy-ga6
              liferay-faces-3.0.5-ga6
              liferay-faces-3.1.5-ga6
              liferay-faces-3.2.5-ga6
              liferay-faces-4.2.5-ga6