1 |
lpetzo |
369 |
package actionTools; |
2 |
|
|
|
3 |
|
|
/** |
4 |
|
|
* @author Lars Petzold |
5 |
|
|
* |
6 |
|
|
* The purpose of this class is to provide an abstract strategy to retrieve |
7 |
|
|
* data from a source and store it in target object. Therefore, you have to |
8 |
|
|
* implement function <code>retrieve(Object obj)</code> as it suits best your |
9 |
|
|
* requirements. The data to be stored might violate the storable data type, |
10 |
|
|
* hence, this function throws <code>java.lang.ClassCastExceptions</code>. |
11 |
|
|
*/ |
12 |
|
|
|
13 |
|
|
public abstract class Retriever extends Action { |
14 |
|
|
public Retriever(Object obj) { |
15 |
|
|
super(obj); |
16 |
|
|
} |
17 |
|
|
public abstract void retrieve(Object obj) throws ClassCastException; |
18 |
|
|
} |