org.xwiki.rendering.renderer
Interface PrintRendererFactory
@ComponentRole
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: PrintRendererFactory.java 22735 2009-08-14 07:34:43Z vmassol $
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
Copyright © 2004-2011 XWiki. All Rights Reserved.