jsystem.utils
Class ResultCollector

java.lang.Object
  extended byjsystem.utils.ResultCollector

public class ResultCollector
extends Object

Simple class that collects result messages. It's implemented as Singleon patern, so instance of ResultCollector you get from static variable ResultCollector.collector


Field Summary
static ResultCollector collector
          Instance of ResultCollector
 
Method Summary
 void addResult(String result)
          Add result message.
 void clearResult()
          Clears result buffer.
 String getResult()
          Returns collected results.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

collector

public static ResultCollector collector
Instance of ResultCollector

Method Detail

addResult

public void addResult(String result)
Add result message.

Parameters:
result - message

getResult

public String getResult()
Returns collected results.

Returns:
results

clearResult

public void clearResult()
Clears result buffer.