big-andy-coates / populace

Test utility to recursiving populate object graphs
Apache License 2.0
0 stars 0 forks source link

Extend support for @XmlTypeAdapter #29

Open big-andy-coates opened 9 years ago

big-andy-coates commented 9 years ago

@XmlTypeAdapter can also be present on field, or getter or setter, or in package-info.java

big-andy-coates commented 9 years ago

To extend support for XmlTypeAdapter to cover field / accessor instances requires a re-design. JaxBInstanceFactory just won't cut the mustard, as it only receives the type and not the field.

Need to think about design, but it might be sufficient to pass the instance factory some kind of context, from which it can request attributes... (via the JaxBAnnotationInspector)