| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LocalizedContextHome
A home interface for lookups to LocalizedContext instances.
Method Summary | |
---|---|
LocalizedContext | getLocalizedContext(java.util.Enumeration<java.util.Locale> aLanguageRangeEnumeration)
Returns a context instance which uses the language ranges specified in the given locale enumeration. |
LocalizedContext | getLocalizedContext(java.lang.String anAcceptLanguageString)
Returns a context instance which uses the language ranges specified in the given language string. |
ResourceBundleProvider | getResourceBundleProvider(java.lang.String baseName,
java.lang.ClassLoader loader)
Constructs a ResourceBundleProvider that can be used to load resource bundles in particular locales without providing a locale based fallback. |
Method Detail |
---|
LocalizedContext getLocalizedContext(java.util.Enumeration<java.util.Locale> aLanguageRangeEnumeration)
All desired fallback sequences must be explicitly provided in the given enumeration. E.g. the context returned for {de-DE} will not normally find resources for de; if this is desired, {de-DE,de} should be used as argument
null
.
LocalizedContext getLocalizedContext(java.lang.String anAcceptLanguageString)
null
. Note: Currently, wildcards are ignored.
This limitation may be removed in the future.
ResourceBundleProvider getResourceBundleProvider(java.lang.String baseName, java.lang.ClassLoader loader)
Constructs a ResourceBundleProvider that can be used to load resource bundles in particular locales without providing a locale based fallback. In addition the provider exposes the list of locales the resource bundle is available in. The provider can be loaded once and stored as long as the class loader is valid.
Constructing a provider is considered to be a potentially expensive operation, so a provider should be stored and cached for the lifetime of the client of the provider.
null
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |