org.azuki.framework.command
Interface ICallback<T>


public interface ICallback<T>

This interface must be implemented by a object willing to be notifed when the ICommand's process method execution has been completed.

Author:
Robert Bakic (robert.bakic@gmail.com)

Method Summary
 void setError(Exception e)
          Called by the framework when an a ICommand's process method execution throws an Exception.
 void setResult(T res)
          Called by the framework when an a ICommand's process method execution has been completed without throwing an Exception.
 

Method Detail

setResult

void setResult(T res)
Called by the framework when an a ICommand's process method execution has been completed without throwing an Exception.

Parameters:
res - The result object returned by the ICommand's process method.

setError

void setError(Exception e)
Called by the framework when an a ICommand's process method execution throws an Exception.

Parameters:
e - The exception thrown by the ICommand's process method.


Azuki Framework Copyright © 2006 the original author or authors.