1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.apache.commons.clazz.reflect.extended; |
17 | |
|
18 | |
import org.apache.commons.clazz.ClazzLoader; |
19 | |
import org.apache.commons.clazz.reflect.ReflectedClazz; |
20 | |
import org.apache.commons.clazz.reflect.ReflectedInstanceFactoryIntrospector; |
21 | |
import org.apache.commons.clazz.reflect.ReflectedOperationIntrospector; |
22 | |
import org.apache.commons.clazz.reflect.ReflectedPropertyIntrospector; |
23 | |
import org.apache.commons.clazz.reflect.common.*; |
24 | |
|
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
public class ExtendedReflectedClazz extends ReflectedClazz { |
31 | |
|
32 | |
|
33 | |
|
34 | |
|
35 | |
|
36 | |
protected static final |
37 | 0 | ReflectedPropertyIntrospector[] PROPERTY_INTROSPECTORS = |
38 | |
new ReflectedPropertyIntrospector[] { |
39 | |
new ExtendedReflectedListPropertyIntrospector(), |
40 | |
new ReflectedMappedPropertyIntrospector(), |
41 | |
new ReflectedScalarPropertyIntrospector() }; |
42 | |
|
43 | |
|
44 | |
|
45 | |
|
46 | |
|
47 | |
public static final |
48 | 0 | ReflectedOperationIntrospector[] OPERATION_INTROSPECTORS = |
49 | |
new ReflectedOperationIntrospector[] { |
50 | |
new ReflectedMethodOperationIntrospector() |
51 | |
}; |
52 | |
|
53 | |
|
54 | |
|
55 | |
|
56 | |
|
57 | |
|
58 | |
public static final |
59 | 0 | ReflectedInstanceFactoryIntrospector[] INSTANCE_FACTORY_INTROSPECTORS = |
60 | |
new ReflectedInstanceFactoryIntrospector[] { |
61 | |
new ReflectedConstructorInstanceFactoryIntrospector(), |
62 | |
new ReflectedMethodInstanceFactoryIntrospector() |
63 | |
}; |
64 | |
|
65 | |
|
66 | |
|
67 | |
|
68 | |
|
69 | |
|
70 | |
|
71 | |
public ExtendedReflectedClazz(ClazzLoader loader, Class instanceClass) { |
72 | 0 | super(loader, instanceClass); |
73 | 0 | } |
74 | |
|
75 | |
protected ReflectedPropertyIntrospector[] getPropertyIntrospectors() { |
76 | 0 | return PROPERTY_INTROSPECTORS; |
77 | |
} |
78 | |
|
79 | |
protected ReflectedOperationIntrospector[] getOperationIntrospectors() { |
80 | 0 | return OPERATION_INTROSPECTORS; |
81 | |
} |
82 | |
|
83 | |
protected ReflectedInstanceFactoryIntrospector[] |
84 | |
getInstanceFactoryIntrospectors() |
85 | |
{ |
86 | 0 | return INSTANCE_FACTORY_INTROSPECTORS; |
87 | |
} |
88 | |
|
89 | |
} |