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 TextBorderFactorynewFactory()Creates a new text border factory.voidsetCreatedWithSPI()Informs the implementation that it was discovered and instantiated using information collected from a file within theMETA-INF/servicesdirectory.
-
-
-
Method Detail
-
newFactory
public TextBorderFactory newFactory()
Description copied from interface:TextBorderFactoryServiceCreates a new text border factory.- Specified by:
newFactoryin interfaceTextBorderFactoryService- Returns:
- returns a new text border factory
-
setCreatedWithSPI
public void setCreatedWithSPI()
Description copied from interface:TextBorderFactoryServiceInforms the implementation that it was discovered and instantiated using information collected from a file within the
META-INF/servicesdirectory. 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:
setCreatedWithSPIin interfaceTextBorderFactoryService
-
-