Revision 1521 org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.lib/src/main/java/org/gvsig/tools/util/impl/DefaultCaller.java
DefaultCaller.java | ||
---|---|---|
26 | 26 |
import java.util.ArrayList; |
27 | 27 |
import java.util.Iterator; |
28 | 28 |
import java.util.List; |
29 |
import org.gvsig.tools.exception.ListBaseException; |
|
29 | 30 |
|
30 | 31 |
import org.gvsig.tools.util.Callable; |
31 | 32 |
import org.gvsig.tools.util.Caller; |
... | ... | |
46 | 47 |
this.exceptions = null; |
47 | 48 |
} |
48 | 49 |
|
50 |
@Override |
|
49 | 51 |
public boolean call() { |
50 | 52 |
List exceptions = new ArrayList(); |
51 | 53 |
Iterator it = this.callables.iterator(); |
... | ... | |
65 | 67 |
return true; |
66 | 68 |
} |
67 | 69 |
|
70 |
@Override |
|
68 | 71 |
public boolean getCollectExceptions() { |
69 | 72 |
return this.collectExceptions; |
70 | 73 |
} |
71 | 74 |
|
75 |
@Override |
|
72 | 76 |
public void setCollectExceptions(boolean collectExceptions) { |
73 | 77 |
this.collectExceptions = collectExceptions; |
74 | 78 |
} |
75 | 79 |
|
80 |
@Override |
|
76 | 81 |
public void add(Callable callable) { |
77 | 82 |
this.callables.add(callable); |
78 | 83 |
} |
79 | 84 |
|
85 |
@Override |
|
80 | 86 |
public List getExceptions() { |
81 | 87 |
return this.exceptions; |
82 | 88 |
} |
83 |
|
|
89 |
|
|
90 |
@Override |
|
91 |
public ListBaseException getException() { |
|
92 |
ListBaseException ex = new ListBaseException( |
|
93 |
"Caller exceptions", |
|
94 |
"_CallerExceptions", |
|
95 |
1423047689324679850L |
|
96 |
) { }; |
|
97 |
ex.addAll(this.exceptions); |
|
98 |
return ex; |
|
99 |
} |
|
84 | 100 |
} |
Also available in: Unified diff