Uploaded image for project: 'PUBLIC - Liferay Portal Enterprise Edition'
  1. PUBLIC - Liferay Portal Enterprise Edition
  2. LPE-1393

Removed <constructor-arg> from Spring configuration files

Details

    Description

      Where possible, <constructor-arg> has been removed from Spring configuration files because it is unclear which constructor is being used. The <property> element is now used instead to clarify which constructor is used.

      As part of this change the following classes has been updated:

      Class: com.liferay.portal.kernel.cluster.messaging.ClusterBridgeMessageListener

      Method: ClusterBridgeMessageListener(Priority priority)
      Status: Removed
      New method: setPriority(Priority priority)

      Class: com.liferay.portal.kernel.messaging.BaseDestination

      Method: BaseDestination(String name)
      Status: Deprecated
      New method: setName(String name)

      Method: BaseDestination(String name, int workersCoreSize, int workersMaxSize)
      Status: Deprecated
      New method: setName(String name)
      New method: setWorkersCoreSize(int workersCoreSize)
      New method: setWorkersMaxSize(int workersMaxSize)

      Class: com.liferay.portal.kernel.messaging.BaseMessageListener

      Method: BaseMessageListener(SingleDestinationMessageSender statusSender, MessageSender responseSender)
      Status: Deprecated
      New method: setResponseSender(MessageSender responseSender)
      New method: setStatusSender(SingleDestinationMessageSender statusSender)

      Class: com.liferay.portal.kernel.messaging.BridgingMessageListener

      Method: BridgingMessageListener(SingleDestinationMessageSender singleDestinationMessageSender)
      Status: Deprecated
      New method: setSingleDestinationMessageSender(SingleDestinationMessageSender singleDestinationMessageSender)

      Class: com.liferay.portal.kernel.messaging.GlobalDestinationEventListener

      Method: GlobalDestinationEventListener(MessageListener messageListener, List<String> ignoredDestinations)
      Status: Deprecated
      New method: setIgnoredDestinations(List<String> ignoredDestinations)
      New method: setMessageListener(MessageListener messageListener)

      Class: com.liferay.portal.kernel.messaging.ParallelDestination

      Method: ParallelDestination(String name)
      Status: Deprecated

      Method: ParallelDestination(String name, int workersCoreSize, int workersMaxSize)
      Status: Deprecated

      Class: com.liferay.portal.kernel.messaging.SerialDestination

      Method: SerialDestination(String name)
      Status: Deprecated

      Class: com.liferay.portal.kernel.messaging.proxy.ProxyMessageListener

      Method: ProxyMessageListener(Object manager)
      Status: Removed
      New method: setManager(Object manager)

      Class: com.liferay.portal.kernel.messaging.sender.DefaultSingleDestinationMessageSender

      Method: DefaultSingleDestinationMessageSender(String destinationName, MessageSender messageSender)
      Status: Deprecated
      New method: setDestinationName(String destinationName)
      New method: setMessageSender(MessageSender messageSender)

      Class: com.liferay.portal.kernel.messaging.sender.DefaultSingleDestinationSynchronousMessageSender

      Method: DefaultSingleDestinationSynchronousMessageSender(String destinationName, SynchronousMessageSender synchronousMessageSender)
      Status: Deprecated
      New method: setDestinationName(String destinationName)
      New method: setSynchronousMessageSender(SynchronousMessageSender synchronousMessageSender)

      Class: com.liferay.portal.kernel.messaging.sender.DefaultSynchronousMessageSender

      Method: DefaultSynchronousMessageSender(MessageBus messageBus, PortalUUID portalUUID, long timeout)
      Status: Deprecated
      New method: setMessageBus(MessageBus messageBus)
      New method: setPortalUUID(PortalUUID portalUUID)
      New method: setTimeout(long timeout)

      Attachments

        Issue Links

          Activity

            People

              michael.saechang Michael Saechang
              brian.chan Brian Chan
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Packages

                  Version Package
                  5.1 EE SP4 (5.1.7)
                  5.2 EE SP2 (5.2.6)