Package com.iizix.text
Class DefaultInfoHolder
java.lang.Object
com.iizix.text.DefaultInfoHolder
Class that holds the default KString information provider and Locale information for the Designer or the Server.
The default should be used as little as possible because it requires resolving the client KString information provider in the Server.
- Author:
- Christopher Mindus
Constructor Summary
Method Summary
Modifier and TypeMethodDescriptionstatic ILocaleString
Gets the system ILocaleString default instance.static IKStringInfoProvider
Gets the IKStringInfoProvider instance for the current thread or a global instance.static IKStringInfoProviderHolder
Gets the IKStringInfoProviderHolder instance.static void
Sets the IKStringInfoProviderHolder instance.
Constructor Details
DefaultInfoHolder
public DefaultInfoHolder()
Method Details
setKStringInfoProviderHolder
Sets the IKStringInfoProviderHolder instance. This can only be done once in the Server and Designer, so do not attempt to call this method.- Parameters:
holder
- The instance.- Throws:
IllegalStateException
- If the instance is already set.
getKStringInfoProviderHolder
Gets the IKStringInfoProviderHolder instance.- Returns:
- The instance, or null if not set.
getKStringInfoProvider
Gets the IKStringInfoProvider instance for the current thread or a global instance.- Returns:
- The instance, or
null
if none is found for the current thread or a global instance.
getDefaultILocaleString
Gets the system ILocaleString default instance. Please note that it is advisable to use theILocaleSettings
for a client or application session, and this is done usingIClientSessionGyro.getSessionInstance()
orIAppSessionGyro.getSessionInstance()
. BothIClientSessionGyro
andIAppSessionGyro
implements the interface.- Returns:
- The default instance.