Class LinkedRendererFactory

java.lang.Object
com.aquima.interactions.portal.model.factory.LinkedRendererFactory
All Implemented Interfaces:
IRendererFactory

public final class LinkedRendererFactory extends Object implements IRendererFactory
Document renderer factory implementation that combines two factories.
Since:
6.0
Author:
Jon van Leuven
  • Method Details

    • createFor

      public static 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.
      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

      public OutputFormat[] getOutputFormats()
      Description copied from interface: IRendererFactory
      This method returns the output formats that are supported by the renderer factory.
      Specified by:
      getOutputFormats in interface IRendererFactory
      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 interface IRendererFactory
      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.