com.hammurapi.review
Class ContextReporter

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

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

Delegates method invocations to reporters found in context.

Author:
Pavel Vlasov

Constructor Summary
ContextReporter()
           
 
Method Summary
 void close()
          Closes reporter.
 ObservationSink createObservationSink(Module module)
          Creates observation sink for a module.
 void init(ConfigurationContext<ObjectDefinition> context)
           
 void onException(Exception e)
          This method is invoked when exception is thrown before model and observation sinks are constructed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextReporter

public ContextReporter()
Method Detail

close

public void close()
           throws ReviewException
Description copied from interface: Reporter
Closes reporter.

Specified by:
close in interface Reporter<Object>
Throws:
ReviewException

createObservationSink

public ObservationSink createObservationSink(Module module)
                                      throws ReviewException
Description copied from interface: Reporter
Creates observation sink for a module.

Specified by:
createObservationSink in interface Reporter<Object>
Returns:
Throws:
ReviewException

onException

public void onException(Exception e)
Description copied from interface: Reporter
This method is invoked when exception is thrown before model and observation sinks are constructed.

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