Class FormatterEngineMaker


  • public class FormatterEngineMaker
    extends Object

    Like all maker classes in the api, this class is only used directly in SPI context. Unlike some other classes however, this class does not implement a service interface that can be used from OSGi. The reason for this is that the implementation simply returns a single instance of the lower level interface with references populated with SPI. To use in OSGi context, request the lower level service directly from the DS registry.

    • Constructor Detail

      • FormatterEngineMaker

        public FormatterEngineMaker()
        Creates a new formatter engine maker.
    • Method Detail

      • getFactory

        public FormatterEngineFactoryService getFactory()
        Gets a formatter engine factory service.
        Returns:
        returns a formatter engine factory service
      • newInstance

        public static FormatterEngineMaker newInstance()
        Creates a new formatter engine maker instance.
        Returns:
        returns a new formatter engine maker
      • newFormatterEngine

        public FormatterEngine newFormatterEngine​(String locale,
                                                  String mode,
                                                  PagedMediaWriter writer)
        Creates a new formatter engine.
        Parameters:
        locale - the locale
        mode - the braille mode
        writer - the writer
        Returns:
        returns a new instance