public interface BrailleTranslatorFactoryMakerService
Provides an interface for a BrailleTranslatorFactoryMaker service. The purpose of this interface is to expose an implementation of a BrailleTranslatorFactoryMaker 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<TranslatorSpecification> |
listSpecifications()
Returns a list of supported specifications.
|
BrailleTranslatorFactory |
newFactory(String locale,
String grade)
Gets a factory for the given specification.
|
BrailleTranslator |
newTranslator(String locale,
String grade)
Gets a translator for the given specification
|
boolean |
supportsSpecification(String locale,
String mode)
Returns true if the translator factory supports the given specification.
|
boolean supportsSpecification(String locale, String mode)
locale - the translator localemode - the translator grade, or null for uncontracted brailleCollection<TranslatorSpecification> listSpecifications()
BrailleTranslatorFactory newFactory(String locale, String grade) throws TranslatorConfigurationException
locale - the locale for the factorygrade - the grade for the factoryTranslatorConfigurationException - if the specification is not supportedBrailleTranslator newTranslator(String locale, String grade) throws TranslatorConfigurationException
locale - the locale for the translatorgrade - the grade for the translatorTranslatorConfigurationException - if the specification is not supported