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 |
|---|---|
java.util.Collection<java.lang.String> |
listLocales()
Returns a list of supported locales as defined by IETF RFC 3066.
|
HyphenatorFactory |
newFactory(java.lang.String target)
Gets a HyphenatorFactory that supports the specified locale
|
HyphenatorInterface |
newHyphenator(java.lang.String target)
Creates a new hyphenator.
|
HyphenatorFactory newFactory(java.lang.String target) throws HyphenatorConfigurationException
target - the target localeHyphenatorConfigurationException - if the locale is not supportedHyphenatorInterface newHyphenator(java.lang.String target) throws HyphenatorConfigurationException
target - the target localeHyphenatorConfigurationException - if the locale is not supportedjava.util.Collection<java.lang.String> listLocales()