[ https://issues.apache.org/jira/browse/CAMEL-3693?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen reassigned CAMEL-3693: ---------------------------------- Assignee: Claus Ibsen > have a way to validate the model is correct according to JAXB and bean > introspection rules > ------------------------------------------------------------------------------------------ > > Key: CAMEL-3693 > URL: https://issues.apache.org/jira/browse/CAMEL-3693 > Project: Camel > Issue Type: Improvement > Reporter: james strachan > Assignee: Claus Ibsen > > Its very easy for us to create JAXB objects which can only be used from JAXB > marshalling and not from Java code or introspection. Or that we can introduce > JAXB bugs by inconsistent annotation usage. > We should write a little validator tool that iterates through all *Definition > classes inside org.apache.camel.model.* and checks that... > * for every field which is annotated with @XmlElementRef or @XmlAttribute or > @XmlElement that it has a valid getter and setter > * all getters of type "boolean" are called isFoo whereas all other getters > (including of type Boolean) are called getFoo > * we are careful to specify @XmlAccessorType(XmlAccessType.FIELD) on the > class - or at least are consistent in JAXB annotations being either all on > fields or all on properties (e.g. ResequenceDefinition is missing right now > and has mixed JAXB annotations) -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira