You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2011/02/24 17:16:38 UTC
[jira] Resolved: (CAMEL-3693) have a way to validate the model is
correct according to JAXB and bean introspection rules
[ https://issues.apache.org/jira/browse/CAMEL-3693?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-3693.
--------------------------------
Resolution: Fixed
Fix Version/s: 2.7.0
trunk: 1074197.
> 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
> Fix For: 2.7.0
>
>
> 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