public final class MessageLocalizationHelper
extends java.lang.Object
Note: This class doesn't synchronize assignation of message localization service object, hence consuming this class inside any native connector is strictly forbidden.
The registration of message localization service happens immediately after the connector object is created, hence the consumer who consumes the message localization service from this class would guaranteed get the non null instance of the message localization service.
| Modifier and Type | Method and Description |
|---|---|
static ConnectorServices |
getMessageLocalizationService()
Supplies the instance of message localization service.
|
static void |
registerMessageLocalizationService(ConnectorServices service)
Registers a message localization service that provides a message text
localization element.
|
public static void registerMessageLocalizationService(ConnectorServices service)
Note: Consuming this method inside any connector is strictly forbidden.
service - The message service instance that provides message text
localization element.public static ConnectorServices getMessageLocalizationService()
Note: Consuming this method inside any connector is strictly forbidden.