[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-3120) Support webbeans typesafe xml schema
Stuart Douglas (JIRA)
jira-events at lists.jboss.org
Sun May 30 06:55:27 EDT 2010
[ https://jira.jboss.org/browse/JBIDE-3120?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12533137#action_12533137 ]
Stuart Douglas commented on JBIDE-3120:
---------------------------------------
This has been superseded by the seam-xml-config module.
As I see there are a few different parts to this:
- Validation
The easiest way to do this would probably be to bootstrap seam-xml. Any problems will be reported as XmlConfigurationExceptions or XmlParseException complete with line no.
- Awareness of beans defined in XML (e.g. for reporting on unsatisfied injection points)
- Auto Completion
There has been talk of auto generating schema's for some of this however after looking into it I think it would be of limited use. It could be used for basic validation, however as annotations from different namespaces can be used in most places almost every element will have a <xs:any/> element.
> Support webbeans typesafe xml schema
> -------------------------------------
>
> Key: JBIDE-3120
> URL: https://jira.jboss.org/browse/JBIDE-3120
> Project: Tools (JBoss Tools)
> Issue Type: Feature Request
> Components: cdi (jsr-299)
> Reporter: Max Rydahl Andersen
> Fix For: LATER
>
>
> http://docs.jboss.org/webbeans/reference/1.0/en-US/html/xml.html
>
> "The advantage of this approach is that you can write an XML schema
> that prevents spelling errors in your XML document. It's even possible
> for a tool to generate the XML schema automatically from the compiled
> Java code. Or, an integrated development environment could perform the
> same validation without the need for the explicit intermediate
> generation step."
> 1) the RI will have a code->xsd generator for web-beans.xml; could maybe be used for validation....but requires that all classes can compile
> 2) we should have xml completions following the naming standard layed out by webbeans spec
> Update: webbeans.xml is no longer part of the spec but it will be important for extensions to jsr-299 to somehow tell the tooling which annotations/beans they will be adding into the jsr-299 runtime. Seam 3 will most likely use this suggestion for the spec.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list