public interface HyphenatorFactoryMakerService
Provides an interface for a HyphenatorFactoryMaker service. The purpose of this interface is to expose an implementation of a HyphenatorFactoryMaker 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 |
---|---|
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.
|
HyphenatorFactory newFactory(String target) throws HyphenatorConfigurationException
target
- the target localeHyphenatorConfigurationException
- if the locale is not supportedHyphenatorInterface newHyphenator(String target) throws HyphenatorConfigurationException
target
- the target localeHyphenatorConfigurationException
- if the locale is not supportedCollection<String> listLocales()