org.cruxframework.crux.core.client.rest
Interface Callback<T>

Type Parameters:
T - Rest service return type

public interface Callback<T>

Defines a callback to be called when the rest service returns.

Author:
Thiago da Rosa de Bustamante

Method Summary
 void onError(Exception e)
          Called when a problem occurred on rest service invocation.
 void onSuccess(T result)
          Called when the rest service returns something.
 

Method Detail

onSuccess

void onSuccess(T result)
Called when the rest service returns something.

Parameters:
result - the value returned

onError

void onError(Exception e)
Called when a problem occurred on rest service invocation.

Parameters:
e - the error


Copyright © 2014. All rights reserved.