org.ow2.jonas.lib.execution
Class ExecutionResult<T>

java.lang.Object
  extended by org.ow2.jonas.lib.execution.ExecutionResult<T>
Type Parameters:
T - result object type.

public class ExecutionResult<T>
extends Object

Store the result of an IExecution.

Author:
Guillaume Sauthier

Constructor Summary
ExecutionResult()
           
 
Method Summary
 Exception getException()
           
 T getResult()
           
 boolean hasException()
           
 void setException(Exception exception)
           
 void setResult(T result)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecutionResult

public ExecutionResult()
Method Detail

getResult

public T getResult()
Returns:
the result

setResult

public void setResult(T result)
Parameters:
result - the result to set

getException

public Exception getException()
Returns:
the exception

setException

public void setException(Exception exception)
Parameters:
exception - the Exception to set

hasException

public boolean hasException()
Returns:
true if errors were thrown during the execution.


Copyright © 2010 OW2 Consortium. All Rights Reserved.