Class EnablingTechnologiesEmbosserProvider
- java.lang.Object
-
- org.daisy.braille.utils.impl.provider.brailler.EnablingTechnologiesEmbosserProvider
-
- All Implemented Interfaces:
EmbosserProvider,Provider<EmbosserFactoryProperties>
public class EnablingTechnologiesEmbosserProvider extends Object implements EmbosserProvider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEnablingTechnologiesEmbosserProvider.EmbosserTypeTODO: write java doc.
-
Constructor Summary
Constructors Constructor Description EnablingTechnologiesEmbosserProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<EmbosserFactoryProperties>list()Lists all Factories.EmbossernewFactory(String identifier)Returns a new embosser with the specified identifier.voidsetCreatedWithSPI()Informs the implementation that it was discovered and instantiated using information collected from a file within theMETA-INF/servicesdirectory.voidsetTableCatalog(TableCatalogService service)voidunsetTableCatalog(TableCatalogService service)
-
-
-
Method Detail
-
newFactory
public Embosser newFactory(String identifier)
Description copied from interface:EmbosserProviderReturns a new embosser with the specified identifier.- Specified by:
newFactoryin interfaceEmbosserProvider- Parameters:
identifier- the identifier- Returns:
- returns a new embosser
-
list
public Collection<EmbosserFactoryProperties> list()
Description copied from interface:ProviderLists all Factories.- Specified by:
listin interfaceProvider<EmbosserFactoryProperties>- Returns:
- returns a collection of Factories
-
setTableCatalog
public void setTableCatalog(TableCatalogService service)
-
unsetTableCatalog
public void unsetTableCatalog(TableCatalogService service)
-
setCreatedWithSPI
public void setCreatedWithSPI()
Description copied from interface:EmbosserProviderInforms 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 interfaceEmbosserProvider
-
-