Package org.daisy.dotify.api.formatter
Class FormatterFactoryMaker
- java.lang.Object
-
- org.daisy.dotify.api.formatter.FormatterFactoryMaker
-
public class FormatterFactoryMaker extends Object
Provides a factory for formatters. The factory will instantiate the first Formatter it encounters when querying the services API.
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 FormatterFactoryMaker()
Creates a new formatter factory maker
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FormatterFactory
getFactory()
Gets a formatter factoryFormatter
newFormatter(String locale, String mode)
Creates a new formatter with the specified options.static FormatterFactoryMaker
newInstance()
Creates a new instance of a formatter factory maker
-
-
-
Method Detail
-
newInstance
public static FormatterFactoryMaker newInstance()
Creates a new instance of a formatter factory maker- Returns:
- returns a new formatter factory maker
-
getFactory
public FormatterFactory getFactory()
Gets a formatter factory- Returns:
- returns a formatter factory
-
-