public class BasicRendererFactory extends Object implements RendererFactory
Modifier and Type | Field and Description |
---|---|
protected Renderer |
defaultRenderer
The default renderer.
|
protected Map<String,Renderer> |
renderers
The renderer name/renderer map.
|
Constructor and Description |
---|
BasicRendererFactory()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Renderer |
getRenderer(String name)
Returns a renderer by its name.
|
void |
registerRenderer(String name,
Renderer renderer)
Registers a renderer.
|
void |
setDefaultRenderer(Renderer renderer)
Sets the default renderer.
|
protected Renderer defaultRenderer
public Renderer getRenderer(String name)
getRenderer
in interface RendererFactory
name
- The name of the renderer.public void setDefaultRenderer(Renderer renderer)
renderer
- The default renderer.Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.