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 SummaryConstructors
- Method SummaryModifier and TypeMethodDescription- static ILocaleStringGets the system ILocaleString default instance.- static IKStringInfoProviderGets the IKStringInfoProvider instance for the current thread or a global instance.- static IKStringInfoProviderHolderGets the IKStringInfoProviderHolder instance.- static voidSets the IKStringInfoProviderHolder instance.
- Constructor Details- DefaultInfoHolderpublic DefaultInfoHolder()
 
- Method Details- setKStringInfoProviderHolderSets 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.
 
- getKStringInfoProviderHolderGets the IKStringInfoProviderHolder instance.- Returns:
- The instance, or null if not set.
 
- getKStringInfoProviderGets the IKStringInfoProvider instance for the current thread or a global instance.- Returns:
- The instance, or nullif none is found for the current thread or a global instance.
 
- getDefaultILocaleStringGets the system ILocaleString default instance. Please note that it is advisable to use the- ILocaleSettingsfor a client or application session, and this is done using- IClientSessionGyro.getSessionInstance()or- IAppSessionGyro.getSessionInstance(). Both- IClientSessionGyroand- IAppSessionGyroimplements the interface.- Returns:
- The default instance.