Package com.iizix.text
Class DefaultKStringInfoProviderHolder
- java.lang.Object
- com.iizix.text.DefaultKStringInfoProviderHolder
 
- public class DefaultKStringInfoProviderHolder extends java.lang.ObjectClass that holds the default KString information provider 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- Constructors - Constructor - Description - DefaultKStringInfoProviderHolder()
 - Method Summary- All Methods Static Methods Concrete Methods - Modifier and Type - Method - Description - static IKStringInfoProvider- getKStringInfoProvider()Gets the IKStringInfoProvider instance for the current thread or a global instance.- static IKStringInfoProviderHolder- getKStringInfoProviderHolder()Gets the IKStringInfoProviderHolder instance.- static void- setKStringInfoProviderHolder(IKStringInfoProviderHolder holder)Sets the IKStringInfoProviderHolder instance.
 
- Method Detail- 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:
- java.lang.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 nullif none is found for the current thread or a global instance.