[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: enums, generics and other animals

adrian@jboss.org do-not-reply at jboss.com
Fri Mar 7 10:15:02 EST 2008


"alesj" wrote : "adrian at jboss.org" wrote : 
  |   | You don't need to code this yourself. Just add @XmlEnumValues to the enum class.
  |   | JBoss/AXB already knows how to parse enums. 
  | Does this include the old JBossXB handlers?
  | 

Obviously not. Although you could get JBossXB to do this work for you
from the annotations, if you change the type to use that EnumValueAdapter
(I'm assuming you have such a type in the schema? :-).


  | TypeBInding type = schemaBinding.getTypeBinding(qNameFromSchema);
  | type.setValueAdapter(new EnumValueAdapter(...));
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134875#4134875

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4134875



More information about the jboss-dev-forums mailing list