Class DefaultInfoHolder

java.lang.Object
com.iizix.text.DefaultInfoHolder

public class DefaultInfoHolder extends Object
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 Details

    • DefaultInfoHolder

      public DefaultInfoHolder()
  • Method Details

    • setKStringInfoProviderHolder

      public static void setKStringInfoProviderHolder(IKStringInfoProviderHolder holder)
      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

      public static IKStringInfoProviderHolder getKStringInfoProviderHolder()
      Gets the IKStringInfoProviderHolder instance.
      Returns:
      The instance, or null if not set.
    • getKStringInfoProvider

      public static IKStringInfoProvider 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

      public static ILocaleString getDefaultILocaleString()
      Gets the system ILocaleString default instance. Please note that it is advisable to use the ILocaleSettings for a client or application session, and this is done using IClientSessionGyro.getSessionInstance() or IAppSessionGyro.getSessionInstance(). Both IClientSessionGyro and IAppSessionGyro implements the interface.
      Returns:
      The default instance.