| 57 | } |
| 58 | |
| 59 | @Override |
| 60 | public Class<?> getType(ELContext context, Object base, Object property) { |
| 61 | Objects.requireNonNull(context); |
| 62 | if (base == null || property == null) { |
| 63 | return null; |
| 64 | } |
| 65 | |
| 66 | context.setPropertyResolved(base, property); |
| 67 | BeanProperty beanProperty = property(context, base, property); |
| 68 | |
| 69 | if (readOnly || beanProperty.isReadOnly(base)) { |
| 70 | return null; |
| 71 | } |
| 72 | |
| 73 | return beanProperty.getPropertyType(); |
| 74 | } |
| 75 | |
| 76 | @Override |
| 77 | public Object getValue(ELContext context, Object base, Object property) { |