org.gvsig.tools.util.impl
Class DefaultCaller

java.lang.Object
  extended by org.gvsig.tools.util.impl.DefaultCaller
All Implemented Interfaces:
Caller

public class DefaultCaller
extends Object
implements Caller


Constructor Summary
DefaultCaller()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultCaller

public DefaultCaller()
Method Detail

call

public boolean call()
Description copied from interface: Caller
Call all callables in the list of callables of the caller.

Specified by:
call in interface Caller
Returns:
true if no exceptions produced

getCollectExceptions

public boolean getCollectExceptions()
Description copied from interface: Caller
Get if the Caller can collect exceptions or exit in the first exception produced.

Specified by:
getCollectExceptions in interface Caller
Returns:
boolean that indicate that collect exceptions.

setCollectExceptions

public void setCollectExceptions(boolean collectExceptions)
Description copied from interface: Caller
Set in the caller the behabior of collect al exceptions and continue calling the next callable in the list of our callables.

Specified by:
setCollectExceptions in interface Caller

add

public void add(Callable callable)
Description copied from interface: Caller
Add a callable to the list of callables of the caller.

Specified by:
add in interface Caller

getExceptions

public List getExceptions()
Description copied from interface: Caller
Return the list of collected exceptions or null.

Specified by:
getExceptions in interface Caller
Returns:
list of exceptions


Copyright © 2004-2011 gvSIG. All Rights Reserved.