public interface Integer2TextFactoryMakerService
Provides an interface for a Integer2TextFactoryMaker service. The purpose of this interface is to expose an implementation of a Integer2TextFactoryMaker as an OSGi service.
To comply with this interface, an implementation must be thread safe and address both the possibility that only a single instance is created and used throughout and that new instances are created as desired.
| Modifier and Type | Method and Description |
|---|---|
Integer2TextFactory |
getFactory(java.lang.String locale)
Gets a Integer2TextFactory that supports the specified locale
|
java.util.Collection<java.lang.String> |
listLocales()
Returns a list of supported locales as defined by IETF RFC 3066.
|
Integer2Text |
newInteger2Text(java.lang.String locale)
Creates a new integer2text.
|
Integer2TextFactory getFactory(java.lang.String locale) throws Integer2TextConfigurationException
locale - the target localeInteger2TextConfigurationException - if the locale is not supportedInteger2Text newInteger2Text(java.lang.String locale) throws Integer2TextConfigurationException
locale - the target localeInteger2TextConfigurationException - if the locale is not supportedjava.util.Collection<java.lang.String> listLocales()