public class Integer2TextFactoryMaker extends Object implements Integer2TextFactoryMakerService
Constructor and Description |
---|
Integer2TextFactoryMaker()
Creates a new integer to text factory maker.
|
Modifier and Type | Method and Description |
---|---|
void |
addFactory(Integer2TextFactoryService factory)
Adds a factory (intended for use by the OSGi framework)
|
Integer2TextFactory |
getFactory(String target)
Gets a Integer2TextFactory that supports the specified locale
|
Collection<String> |
listLocales()
Returns a list of supported locales as defined by IETF RFC 3066.
|
static Integer2TextFactoryMaker |
newInstance()
Creates a new Integer2TextFactoryMaker and populates it using the SPI
(java service provider interface).
|
Integer2Text |
newInteger2Text(String target)
Creates a new integer2text.
|
void |
removeFactory(Integer2TextFactoryService factory)
Removes a factory (intended for use by the OSGi framework)
|
public Integer2TextFactoryMaker()
public static Integer2TextFactoryMaker newInstance()
Creates a new Integer2TextFactoryMaker and populates it using the SPI (java service provider interface).
In an OSGi context, an instance should be retrieved using the service registry. It will be registered under the Integer2TextFactoryMakerService interface.
public void addFactory(Integer2TextFactoryService factory)
factory
- the factory to addpublic void removeFactory(Integer2TextFactoryService factory)
factory
- the factory to removepublic Integer2TextFactory getFactory(String target) throws Integer2TextConfigurationException
Integer2TextFactoryMakerService
getFactory
in interface Integer2TextFactoryMakerService
target
- the target localeInteger2TextConfigurationException
- if the locale is not supportedpublic Integer2Text newInteger2Text(String target) throws Integer2TextConfigurationException
Integer2TextFactoryMakerService
newInteger2Text
in interface Integer2TextFactoryMakerService
target
- the target localeInteger2TextConfigurationException
- if the locale is not supportedpublic Collection<String> listLocales()
Integer2TextFactoryMakerService
listLocales
in interface Integer2TextFactoryMakerService