[jboss-dev-forums] [IronJacamar Development] - Re: Parsing and validation

Stefano Maestri do-not-reply at jboss.com
Fri Dec 3 05:28:25 EST 2010


Stefano Maestri [http://community.jboss.org/people/maeste] created the discussion

"Re: Parsing and validation"

To view the discussion, visit: http://community.jboss.org/message/574233#574233

--------------------------------------------------------------
> Jesper Pedersen wrote:
> 
> > Validation has been implemented as method validate AND it's fired for  every metadata creation (aka as part of the constructor). I think it's  better to have valid metadata since we are working with immutable object  at metadata level (at least in 99% of cases). Of course the method  validate is public and can be fired by metadata's client too in case of  metadata forced modification (forceXXX methods). Opinions?
> 
> The validator is also available as a standalone tool, and have Ant and Maven integration. Having the validator as part of our deployment chain is to ensure that people are actually using it before deploying to our container.
> 
> So all the triggered rules should be collected and summaried in the generated report
Oki, but it isn't our validator. Here we are validate our metadata representing xml or annotations. AFAIK our validator tool is about our javax.* implementations, generated from this metadata. IOW here we have implemented minimal check from xsds constraints, something that users could achieve standalone just validating xml against our xsds. Of course we are not enabling xsds validation for performance reasons, doing this validation on generated metadata instead.

> Jesper Pedersen wrote:
> > Of course make this fine grained check would need some extra analysis  and some extra documentation, but I think we would get great benefits.
> 
> Yes, it would be nice to have a very fine gained analysis of the deployments. However, I think it is of lower priority than some of our other tasks atm. If we have some sort of framework for these validation rules it would be a good task for a new contributor.
Good point. I have created a JIRA for the community about that:   https://jira.jboss.org/browse/JBJCA-476 https://jira.jboss.org/browse/JBJCA-476
Anyone interested?

bye
S.
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/574233#574233]

Start a new discussion in IronJacamar Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2099]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20101203/f56a09a2/attachment.html 


More information about the jboss-dev-forums mailing list