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 |
|---|---|
java.util.Collection<TranslatorSpecification> |
listSpecifications()
Returns a list of supported specifications.
|
BrailleTranslatorFactory |
newFactory(java.lang.String locale,
java.lang.String grade)
Gets a factory for the given specification.
|
BrailleTranslator |
newTranslator(java.lang.String locale,
java.lang.String grade)
Gets a translator for the given specification
|
boolean |
supportsSpecification(java.lang.String locale,
java.lang.String mode)
Returns true if the translator factory supports the given specification.
|
boolean supportsSpecification(java.lang.String locale,
java.lang.String mode)
locale - the translator localemode - the translator grade, or null for uncontracted braillejava.util.Collection<TranslatorSpecification> listSpecifications()
BrailleTranslatorFactory newFactory(java.lang.String locale, java.lang.String grade) throws TranslatorConfigurationException
locale - the locale for the factorygrade - the grade for the factoryTranslatorConfigurationException - if the specification is not supportedBrailleTranslator newTranslator(java.lang.String locale, java.lang.String grade) throws TranslatorConfigurationException
locale - the locale for the translatorgrade - the grade for the translatorTranslatorConfigurationException - if the specification is not supported