forked from apechinsky/srplib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
todo.txt
47 lines (29 loc) · 1.67 KB
/
todo.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
- consider single method in binder bind(inputObject, outputObject, ValidationErrors)
Object bean = ...
PropertyValueAdapter model = PropertyValueAdapter.newFromBean(bean.getClass(), "property1");
model.setContext(bean);
// now model is ready to use
Wanted:
PropertyValueAdapter model = PropertyValueAdapter.newFromBean(bean, "property1");
PropertyValueAdapter model = PropertyValueAdapter.newFromClass(bean.getClass(), "property1");
also rename newFromBean(Class beanClass, String property) to newFromClass(Class beanClass, String property)
as shown above
DONE - ConverterRegistry. Add MappingKey.toString() returning source and target class names. For easy debugging.
DONE - ValidationException - add method accepting throwable
- ConverterRegistry add method Class getMappedClass(Class)
- what if registry contains mappings like this?:
(String, Integer, StringToIntegerConverter)
(String, Boolean, StringToBooleanConverter)
- BindException - binding subsystem top level exception
- Convert bind()/unbind() throw ConverterException. Solution:
- bind() wrap it to BindException ValidationException instead
- unbind() create ValidationError based on ConverterException
- Converter adapters
Lambdaj Converter adapter
- Interface for ConverterRegistry
- TypeReference class.http://gafter.blogspot.com/2006/12/super-type-tokens.html
- CompositeKey.getComponents(),
- findXXXX should differ dot syntax support and recursive search
currently findXXXX use nor dot syntax neither recursive search
while findXXXRecursively use both
- Rename Path.parse to Path.parseDot (or similar).