Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
5.1 EE SP3 (5.1.6), 5.2 EE SP1 (5.2.5)
-
All
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
- is related to
-
LPS-5049 Avoid using constructors when wiring Spring beans wherever possible
- Closed