public class PagedMediaWriterFactoryMaker extends Object implements PagedMediaWriterFactoryMakerService
Constructor and Description |
---|
PagedMediaWriterFactoryMaker()
Creates a new paged media writer factory maker.
|
Modifier and Type | Method and Description |
---|---|
void |
addFactory(PagedMediaWriterFactoryService factory)
Adds a factory (intended for use by the OSGi framework)
|
PagedMediaWriterFactory |
getFactory(String target)
Gets a PagedMediaWriterFactory that supports the specified media type
|
Collection<String> |
listMediaTypes()
Returns a list of supported Internet media types.
|
static PagedMediaWriterFactoryMaker |
newInstance()
Creates a new PagedMediaWriterFactoryMaker and populates it using the SPI
(java service provider interface).
|
PagedMediaWriter |
newPagedMediaWriter(String target)
Creates a new PagedMediaWriter.
|
void |
removeFactory(PagedMediaWriterFactoryService factory)
Removes a factory (intended for use by the OSGi framework)
|
public PagedMediaWriterFactoryMaker()
public static PagedMediaWriterFactoryMaker newInstance()
Creates a new PagedMediaWriterFactoryMaker and populates it using the SPI (java service provider interface).
In an OSGi context, an instance should be retrieved using the service registry. It will be registered under the PagedMediaWriterFactoryMakerService interface.
public void addFactory(PagedMediaWriterFactoryService factory)
factory
- the factory to addpublic void removeFactory(PagedMediaWriterFactoryService factory)
factory
- the factory to removepublic PagedMediaWriterFactory getFactory(String target) throws PagedMediaWriterConfigurationException
PagedMediaWriterFactoryMakerService
getFactory
in interface PagedMediaWriterFactoryMakerService
target
- the target Internet media typePagedMediaWriterConfigurationException
- if the media type is not supportedpublic PagedMediaWriter newPagedMediaWriter(String target) throws PagedMediaWriterConfigurationException
PagedMediaWriterFactoryMakerService
newPagedMediaWriter
in interface PagedMediaWriterFactoryMakerService
target
- the target Internet media typePagedMediaWriterConfigurationException
- if the media type is not supportedpublic Collection<String> listMediaTypes()
PagedMediaWriterFactoryMakerService
listMediaTypes
in interface PagedMediaWriterFactoryMakerService