01: /*
02: * Created on Feb 23, 2004
03: */
04: package net.sourceforge.orbroker;
05:
06: import java.lang.reflect.Member;
07:
08: /**
09: * @author Nils Kilden-Pedersen
10: */
11: abstract class ResultObjectInstantiator extends ArgumentsMember {
12:
13: ResultObjectInstantiator(Member member, ArgumentList parameters) {
14: super (member);
15: super .setArgumentList(parameters);
16: }
17:
18: /**
19: * Copy <code>this</code> for type.
20: * @param forType
21: * @return copy of this.
22: */
23: abstract ResultObjectInstantiator copy(Class forType);
24:
25: /**
26: * Get new instance.
27: *
28: * @param row
29: * @return result object
30: */
31: abstract Object newInstance(ResultRow row);
32:
33: /**
34: * @inheritDoc
35: * @see java.lang.Object#toString()
36: */
37: public String toString() {
38: return getMember().toString();
39: }
40:
41: }
|