Package org.daisy.dotify.translator.impl
Class BrailleTextBorderFactoryService
- java.lang.Object
-
- org.daisy.dotify.translator.impl.BrailleTextBorderFactoryService
-
- All Implemented Interfaces:
TextBorderFactoryService
public class BrailleTextBorderFactoryService extends Object implements TextBorderFactoryService
Provides a braille text border factory service.
-
-
Constructor Summary
Constructors Constructor Description BrailleTextBorderFactoryService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TextBorderFactory
newFactory()
Creates a new text border factory.void
setCreatedWithSPI()
Informs the implementation that it was discovered and instantiated using information collected from a file within theMETA-INF/services
directory.
-
-
-
Method Detail
-
newFactory
public TextBorderFactory newFactory()
Description copied from interface:TextBorderFactoryService
Creates a new text border factory.- Specified by:
newFactory
in interfaceTextBorderFactoryService
- Returns:
- returns a new text border factory
-
setCreatedWithSPI
public void setCreatedWithSPI()
Description copied from interface:TextBorderFactoryService
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 interfaceTextBorderFactoryService
-
-