Class LinkedRendererFactory
java.lang.Object
com.aquima.interactions.portal.model.factory.LinkedRendererFactory
- All Implemented Interfaces:
IRendererFactory
Document renderer factory implementation that combines two factories.
- Since:
- 6.0
- Author:
- Jon van Leuven
-
Method Summary
Modifier and TypeMethodDescriptionstatic IRendererFactory
createFor
(IRendererFactory factory, IRendererFactory defaultFactory) This method returns a renderer factory implementation that combines both the renderer factories that are passed to this method.This method returns the output formats that are supported by the renderer factory.getRenderer
(IResourceManager resourceManager, String documentName, OutputFormat[] formats) This method returns the document renderer for the specified format.
-
Method Details
-
createFor
This method returns a renderer factory implementation that combines both the renderer factories that are passed to this method.- Parameters:
factory
- The renderer factory that should be used first when requesting a renderer (optional).defaultFactory
- The renderer factory that should be used when the first did not supply a renderer implementation (mandatory).- Returns:
- a service factory implementation that combines both the service factories that are passed to this method.
-
getOutputFormats
Description copied from interface:IRendererFactory
This method returns the output formats that are supported by the renderer factory.- Specified by:
getOutputFormats
in interfaceIRendererFactory
- Returns:
- Array containing the output formats that are supported by the renderer factory.
-
getRenderer
public IDocumentRenderer getRenderer(IResourceManager resourceManager, String documentName, OutputFormat[] formats) Description copied from interface:IRendererFactory
This method returns the document renderer for the specified format.- Specified by:
getRenderer
in interfaceIRendererFactory
- Parameters:
resourceManager
- A resource manager that can be used to initialize a renderer.documentName
- The name of the document for which a renderer is requested.formats
- The output format(s) for which a renderer is requested.- Returns:
- The document renderer for the specified output format.
-