35 |
|
|
36 |
private static Map reflectionCache = new HashMap(); |
private static Map reflectionCache = new HashMap(); |
37 |
|
|
38 |
|
public static ClassDocReflectedImpl newInstance(Class clazz) |
39 |
|
{ |
40 |
|
ClassDocReflectedImpl result |
41 |
|
= (ClassDocReflectedImpl)reflectionCache.get(clazz); |
42 |
|
if (null != result) { |
43 |
|
return result; |
44 |
|
} |
45 |
|
else { |
46 |
|
return new ClassDocReflectedImpl(clazz); |
47 |
|
} |
48 |
|
} |
49 |
|
|
50 |
public ClassDocReflectedImpl(Class clazz) |
public ClassDocReflectedImpl(Class clazz) |
51 |
{ |
{ |
52 |
reflectionCache.put(clazz, this); |
reflectionCache.put(clazz, this); |