Interface PrintRendererFactory


@Role public interface PrintRendererFactory
Allows creating Renderers of a given type (one factory implementation per Renderer type). We need a factory since we need to pass a WikiPrinter object to the created Renderer. In addition this factory allows us to be able to return the Syntax supported by the Renderer without needing to create an instance of it.
Since:
1.6M2
Version:
$Id: 19eb67d281d75a115a26067452087f528243bfb7 $
  • Method Details

    • getSyntax

      Syntax getSyntax()
      Returns:
      the Syntax supported by the Renderer type
      Since:
      2.0M3
    • createRenderer

      PrintRenderer createRenderer(WikiPrinter printer)
      Parameters:
      printer - the printer to use to output renderer data
      Returns:
      a new Renderer instance (stateful)
      Since:
      2.0M3