Class ICULocaleService.ICUResourceBundleFactory
java.lang.Object
org.graalvm.shadowed.com.ibm.icu.impl.ICULocaleService.LocaleKeyFactory
org.graalvm.shadowed.com.ibm.icu.impl.ICULocaleService.ICUResourceBundleFactory
- All Implemented Interfaces:
ICUService.Factory
- Enclosing class:
ICULocaleService
public static class ICULocaleService.ICUResourceBundleFactory
extends ICULocaleService.LocaleKeyFactory
A LocaleKeyFactory that creates a service based on the ICU locale data.
This is a base class for most ICU factories. Subclasses instantiate it
with a constructor that takes a bundle name, which determines the supported
IDs. Subclasses then override handleCreate to create the actual service
object. The default implementation returns a resource bundle.
-
Field Summary
FieldsFields inherited from class ICULocaleService.LocaleKeyFactory
INVISIBLE, name, visible, VISIBLE -
Constructor Summary
ConstructorsConstructorDescriptionConvenience constructor that uses the main ICU bundle name.ICUResourceBundleFactory(String bundleName) A service factory based on ICU resource data in resources with the given name. -
Method Summary
Modifier and TypeMethodDescriptionReturn the supported IDs.protected ObjecthandleCreate(ULocale loc, int kind, ICUService service) Create the service.protected ClassLoaderloader()toString()For debugging.voidupdateVisibleIDs(Map<String, ICUService.Factory> result) Override of superclass method.Methods inherited from class ICULocaleService.LocaleKeyFactory
create, getDisplayName, handlesKey, isSupportedID
-
Field Details
-
bundleName
-
-
Constructor Details
-
ICUResourceBundleFactory
public ICUResourceBundleFactory()Convenience constructor that uses the main ICU bundle name. -
ICUResourceBundleFactory
A service factory based on ICU resource data in resources with the given name.
-
-
Method Details
-
getSupportedIDs
Return the supported IDs. This is the set of all locale names for the bundleName.- Overrides:
getSupportedIDsin classICULocaleService.LocaleKeyFactory
-
updateVisibleIDs
Override of superclass method.- Specified by:
updateVisibleIDsin interfaceICUService.Factory- Overrides:
updateVisibleIDsin classICULocaleService.LocaleKeyFactory
-
handleCreate
Create the service. The default implementation returns the resource bundle for the locale, ignoring kind, and service.- Overrides:
handleCreatein classICULocaleService.LocaleKeyFactory
-
loader
-
toString
Description copied from class:ICULocaleService.LocaleKeyFactoryFor debugging.- Overrides:
toStringin classICULocaleService.LocaleKeyFactory
-