org.gvsig.tools.util
Interface Caller

All Known Implementing Classes:
DefaultCaller

public interface Caller

This is a utility class for call a list of callables. It can collect exceptions and continue to call the next callable in the list.

Author:
gvSIG Team - jjdelcerro

Method Summary
 void add(Callable callable)
          Add a callable to the list of callables of the caller.
 boolean call()
          Call all callables in the list of callables of the caller.
 boolean getCollectExceptions()
          Get if the Caller can collect exceptions or exit in the first exception produced.
 List getExceptions()
          Return the list of collected exceptions or null.
 void setCollectExceptions(boolean collectExceptions)
          Set in the caller the behabior of collect al exceptions and continue calling the next callable in the list of our callables.
 

Method Detail

getCollectExceptions

boolean getCollectExceptions()
Get if the Caller can collect exceptions or exit in the first exception produced.

Returns:
boolean that indicate that collect exceptions.

setCollectExceptions

void setCollectExceptions(boolean collectExceptions)
Set in the caller the behabior of collect al exceptions and continue calling the next callable in the list of our callables.

Parameters:
collectExceptions -

add

void add(Callable callable)
Add a callable to the list of callables of the caller.

Parameters:
callable -

getExceptions

List getExceptions()
Return the list of collected exceptions or null.

Returns:
list of exceptions

call

boolean call()
Call all callables in the list of callables of the caller.

Returns:
true if no exceptions produced


Copyright © 2004-2011 gvSIG. All Rights Reserved.