1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.apache.commons.clazz.reflect.standard; |
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 StandardReflectedClazz extends ReflectedClazz { |
31 | |
|
32 | |
|
33 | |
|
34 | |
|
35 | |
|
36 | |
public static final |
37 | 0 | ReflectedPropertyIntrospector[] PROPERTY_INTROSPECTORS = |
38 | |
new ReflectedPropertyIntrospector[] { |
39 | |
new StandardReflectedListPropertyIntrospector(), |
40 | |
new ReflectedScalarPropertyIntrospector() }; |
41 | |
|
42 | |
|
43 | |
|
44 | |
|
45 | |
|
46 | |
public static final |
47 | 0 | ReflectedOperationIntrospector[] OPERATION_INTROSPECTORS = |
48 | |
new ReflectedOperationIntrospector[] { |
49 | |
new ReflectedMethodOperationIntrospector() |
50 | |
}; |
51 | |
|
52 | |
|
53 | |
|
54 | |
|
55 | |
|
56 | |
public static final |
57 | 0 | ReflectedInstanceFactoryIntrospector[] INSTANCE_FACTORY_INTROSPECTORS = |
58 | |
new ReflectedInstanceFactoryIntrospector[] { |
59 | |
new ReflectedConstructorInstanceFactoryIntrospector(), |
60 | |
new ReflectedMethodInstanceFactoryIntrospector() |
61 | |
}; |
62 | |
|
63 | |
|
64 | |
|
65 | |
|
66 | |
public StandardReflectedClazz(ClazzLoader loader, Class instanceClass) { |
67 | 0 | super(loader, instanceClass); |
68 | 0 | } |
69 | |
|
70 | |
protected ReflectedPropertyIntrospector[] getPropertyIntrospectors() { |
71 | 0 | return PROPERTY_INTROSPECTORS; |
72 | |
} |
73 | |
|
74 | |
protected ReflectedOperationIntrospector[] getOperationIntrospectors() { |
75 | 0 | return OPERATION_INTROSPECTORS; |
76 | |
} |
77 | |
|
78 | |
protected ReflectedInstanceFactoryIntrospector[] |
79 | |
getInstanceFactoryIntrospectors() |
80 | |
{ |
81 | 0 | return INSTANCE_FACTORY_INTROSPECTORS; |
82 | |
} |
83 | |
} |