org.jmonit.reporting
Class JSonRenderer
java.lang.Object
org.jmonit.reporting.JSonRenderer
- All Implemented Interfaces:
- Renderer, Visitor
public class JSonRenderer
- extends java.lang.Object
- implements Renderer, Visitor
- Author:
- Nicolas De Loof
Constructor Summary |
JSonRenderer(java.io.PrintWriter writer)
|
Method Summary |
Renderer |
createNew(java.io.PrintWriter writer)
|
void |
render(java.util.Iterator<Visitable> iterator)
|
void |
setLocale(java.util.Locale locale)
|
void |
visit(java.util.Map<java.lang.String,java.lang.Object> attributes)
Callback for a visitor |
void |
visit(Monitor monitor)
Callback to visit a monitor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JSonRenderer
public JSonRenderer(java.io.PrintWriter writer)
setLocale
public void setLocale(java.util.Locale locale)
- Specified by:
setLocale
in interface Renderer
createNew
public Renderer createNew(java.io.PrintWriter writer)
-
- Specified by:
createNew
in interface Renderer
- See Also:
Renderer.createNew(java.io.PrintWriter)
render
public void render(java.util.Iterator<Visitable> iterator)
-
- Specified by:
render
in interface Renderer
- See Also:
Renderer.render(java.util.Iterator)
visit
public void visit(Monitor monitor)
- Callback to visit a monitor
- Specified by:
visit
in interface Visitor
- Parameters:
monitor
- monitor to visit- See Also:
Visitor.visit(org.jmonit.Monitor)
visit
public void visit(java.util.Map<java.lang.String,java.lang.Object> attributes)
- Callback for a visitor
- Specified by:
visit
in interface Visitor
- Parameters:
attributes
- description of the visited object- See Also:
Visitor.visit(java.util.Map)
Copyright © 2007 Nicolas De Loof. All Rights Reserved.