@ThreadSafe public final class EnumTextResolverWithPropertiesOverrideAndFallback extends AbstractEnumTextResolverWithOverrideAndFallback
DefaultTextResolver static class.| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_USE_RESOURCE_BUNDLE_CACHE
By default the resource bundle cache is used
|
static String |
PREFIX_FALLBACK
Default classpath prefix for fallback resources
|
static String |
PREFIX_OVERRIDE
Default classpath prefix for override resources
|
| Constructor and Description |
|---|
EnumTextResolverWithPropertiesOverrideAndFallback() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearCache() |
Set<String> |
getAllUsedFallbackBundleNames() |
Set<String> |
getAllUsedOverrideBundleNames() |
protected String |
internalGetFallbackString(String sID,
Locale aContentLocale)
This method must return the fallback string for the passed parameters.
|
protected String |
internalGetOverrideString(String sID,
Locale aContentLocale)
This method must return the override string for the passed parameters.
|
boolean |
isUseResourceBundleCache() |
void |
setUseResourceBundleCache(boolean bUseResourceBundleCache)
Change whether the internal resource bundle cache should be used.
|
getText, getTextWithArgspublic static final String PREFIX_OVERRIDE
public static final String PREFIX_FALLBACK
public static final boolean DEFAULT_USE_RESOURCE_BUNDLE_CACHE
public EnumTextResolverWithPropertiesOverrideAndFallback()
public void setUseResourceBundleCache(boolean bUseResourceBundleCache)
bUseResourceBundleCache - The new value. Pass true to enable it.public boolean isUseResourceBundleCache()
true if the internal ResourceBundle cache
should be used. The default value is
DEFAULT_USE_RESOURCE_BUNDLE_CACHE.@Nullable protected String internalGetOverrideString(String sID, @Nonnull Locale aContentLocale)
AbstractEnumTextResolverWithOverrideAndFallbackinternalGetOverrideString in class AbstractEnumTextResolverWithOverrideAndFallbacksID - Unique string IDaContentLocale - locale to use.null.@Nullable protected String internalGetFallbackString(String sID, Locale aContentLocale)
AbstractEnumTextResolverWithOverrideAndFallbackinternalGetFallbackString in class AbstractEnumTextResolverWithOverrideAndFallbacksID - Unique string IDaContentLocale - locale to use.null.@Nonnull @ReturnsMutableCopy public Set<String> getAllUsedOverrideBundleNames()
null.@Nonnull @ReturnsMutableCopy public Set<String> getAllUsedFallbackBundleNames()
null.public void clearCache()
Copyright © 2006–2015 phloc systems. All rights reserved.