Package org.daisy.dotify.api.engine
Class FormatterEngineMaker
- java.lang.Object
-
- org.daisy.dotify.api.engine.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 Summary
Constructors Constructor Description FormatterEngineMaker()
Creates a new formatter engine maker.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FormatterEngineFactoryService
getFactory()
Gets a formatter engine factory service.FormatterEngine
newFormatterEngine(String locale, String mode, PagedMediaWriter writer)
Creates a new formatter engine.static FormatterEngineMaker
newInstance()
Creates a new formatter engine maker instance.
-
-
-
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 localemode
- the braille modewriter
- the writer- Returns:
- returns a new instance
-
-