Class DefaultBypassTranslatorFactoryService

    • Constructor Detail

      • DefaultBypassTranslatorFactoryService

        public DefaultBypassTranslatorFactoryService()
    • Method Detail

      • supportsSpecification

        public boolean supportsSpecification​(String locale,
                                             String mode)
        Description copied from interface: BrailleTranslatorFactoryService
        Returns true if the translator factory supports the given specification.
        Specified by:
        supportsSpecification in interface BrailleTranslatorFactoryService
        Parameters:
        locale - the translator locale
        mode - the translator grade, or null for uncontracted braille
        Returns:
        returns true if the translator factory supports the specification
      • setHyphenator

        public void setHyphenator​(HyphenatorFactoryMakerService hyphenator)
        Sets the hyphenator factory maker service.
        Parameters:
        hyphenator - the hyphenator factory maker service.
      • unsetHyphenator

        public void unsetHyphenator​(HyphenatorFactoryMakerService hyphenator)
        Unsets the hyphenator factory maker service.
        Parameters:
        hyphenator - the instance to unset.
      • setCreatedWithSPI

        public void setCreatedWithSPI()
        Description copied from interface: BrailleTranslatorFactoryService

        Informs the implementation that it was discovered and instantiated using information collected from a file within the META-INF/services directory. In other words, it was created using SPI (service provider interfaces).

        This information, in turn, enables the implementation to use the same mechanism to set dependencies as needed.

        If this information is not given, an implementation should avoid using SPIs and instead use declarative services for dependency injection as specified by OSGi. Note that this also applies to several newInstance() methods in the Java API.

        The class that created an instance with SPI must call this method before putting it to use.

        Specified by:
        setCreatedWithSPI in interface BrailleTranslatorFactoryService