com.hammurapi.review.report.html
Class HtmlReporter

java.lang.Object
  extended by com.hammurapi.review.report.html.HtmlReporter
All Implemented Interfaces:
Component<ObjectDefinition>, Reporter<Object>

public class HtmlReporter
extends Object
implements Reporter<Object>, Component<ObjectDefinition>

This class produces review report in HTML format.

Author:
Pavel Vlasov

Constructor Summary
HtmlReporter(File outputDir, String title, boolean http)
           
 
Method Summary
 void close()
           
 ObservationSink createObservationSink(Module module)
           
 void init(ConfigurationContext<ObjectDefinition> context)
           
 void onException(Exception e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlReporter

public HtmlReporter(File outputDir,
                    String title,
                    boolean http)
Parameters:
http - True indicates that report will be served over http and AJAX can be used.
Method Detail

close

public void close()
           throws ReviewException
Specified by:
close in interface Reporter<Object>
Throws:
ReviewException

createObservationSink

public ObservationSink createObservationSink(Module module)
                                      throws ReviewException
Specified by:
createObservationSink in interface Reporter<Object>
Throws:
ReviewException

onException

public void onException(Exception e)
Specified by:
onException in interface Reporter<Object>

init

public void init(ConfigurationContext<ObjectDefinition> context)
          throws ConfigurationException
Specified by:
init in interface Component<ObjectDefinition>
Throws:
ConfigurationException