开发者

What happens if multiple converters can unmarshal xml?

Imean that there might be two or more

XXXConverter e开发者_运维技巧xtends ReflectionConverter

that might return true here

 public boolean canConvert(Class aClass)

for the same class


Only one converter will be used for a class.

If you register multiple converters with the same priority, then the most recently registered one will be used.

Take a look at the source for DefaultConverterLookup.


I guess they'd both convert it. But I guess the best answer would be to either look it up in the documentation, or just try it out.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜