Adrian Brock wrote:
Alex has a cache of uri -> schemabinding somewhere that could
be populated directly I guess?
This is in DefaultSchemaResolver. It's populated inside resolve(...)
when a SchemaBinding is successfully resolved. There is no reason it's
not exposed for external ns to SchemaBinding mapping.
But as I mentioned, I would agree to pass null to
SchemaBindingInitializer in case SchemaBinding was not resolved and give
it a chance to build it. What do you think?
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Alexey Loubyansky
Sent: Tuesday, March 07, 2006 7:50 AM
To: jboss-development@lists.sourceforge.net
Subject: Re: [JBoss-dev] minOccurs=0 not being used
There must be a resolvable XSD for urn:jboss:simplejavabean:1.0.
Scott M Stark wrote:
So I'm not understanding what triggers a
SchemaBindingInitializer to
be loaded. For a configuration of a marshaller such as the
following:
DefaultSchemaResolver resolver = new DefaultSchemaResolver();
JavaBeanSchemaInitializer si = new
JavaBeanSchemaInitializer();
resolver.addSchemaInitializer("urn:jboss:simplejavabean:1.0", si);
resolver.addSchemaLocation("urn:jboss-test:xmbean:2.0",
"xml/mbeanserver/jboss_xmbean_2_0.xsd");
I'm expecting that both the "urn:jboss-test:xmbean:2.0" and
"urn:jboss:simplejavabean:1.0" namespaces can be handled. The
"urn:jboss:simplejavabean:1.0" has a code centric
SchemaBinding while
the "urn:jboss-test:xmbean:2.0" has a SchemaBinding derived
from the
jboss_xmbean_2_0.xsd annotations.
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
JBoss-Development mailing list
JBoss-Development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-Development mailing list
JBoss-Development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development