开发者

What happens if multiple converters can unmarshal xml?

开发者 https://www.devze.com 2023-02-12 07:40 出处:网络
Imean that there might be two or more XXXConverter e开发者_运维技巧xtends ReflectionConverter that might return true here

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

精彩评论

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

关注公众号