public class HyphenatorFactoryMaker extends Object implements HyphenatorFactoryMakerService
Constructor and Description |
---|
HyphenatorFactoryMaker()
Creates a new formatter factory maker.
|
Modifier and Type | Method and Description |
---|---|
void |
addFactory(HyphenatorFactoryService factory)
Adds a factory (intended for use by the OSGi framework)
|
Collection<String> |
listLocales()
Returns a list of supported locales as defined by IETF RFC 3066.
|
HyphenatorFactory |
newFactory(String target)
Gets a HyphenatorFactory that supports the specified locale
|
HyphenatorInterface |
newHyphenator(String target)
Creates a new hyphenator.
|
static HyphenatorFactoryMaker |
newInstance()
Creates a new HyphenatorFactoryMaker and populates it using the SPI (java
service provider interface).
|
void |
removeFactory(HyphenatorFactoryService factory)
Removes a factory (intended for use by the OSGi framework)
|
public HyphenatorFactoryMaker()
public static HyphenatorFactoryMaker newInstance()
Creates a new HyphenatorFactoryMaker 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 HyphenatorFactoryMakerService interface.
public void addFactory(HyphenatorFactoryService factory)
factory
- the factory to addpublic void removeFactory(HyphenatorFactoryService factory)
factory
- the factory to removepublic HyphenatorFactory newFactory(String target) throws HyphenatorConfigurationException
HyphenatorFactoryMakerService
newFactory
in interface HyphenatorFactoryMakerService
target
- the target localeHyphenatorConfigurationException
- if the locale is not supportedpublic HyphenatorInterface newHyphenator(String target) throws HyphenatorConfigurationException
HyphenatorFactoryMakerService
newHyphenator
in interface HyphenatorFactoryMakerService
target
- the target localeHyphenatorConfigurationException
- if the locale is not supportedpublic Collection<String> listLocales()
HyphenatorFactoryMakerService
listLocales
in interface HyphenatorFactoryMakerService