|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
using the XBean XML configuration inside a regular Spring XML fileI've been tidying up the XBean XML handling of Jencks - here's an example...
http://svn.codehaus.org/jencks/trunk/jencks/src/test/resources/org/jencks/xbean/xbean.xml If you specify the XSDs (as spring enables XML validation by default) then you can use the XML file in a regular Spring ApplicationContext (i.e. not requiring the xbean-derived ApplicationContexts) http://svn.codehaus.org/jencks/trunk/jencks/src/test/resources/org/jencks/xbean/xbean-validating.xml One nice side benefit of using full XSD validation is that your XML IDE will be able to smart complete many of the elements and attributes. -- James ------- http://radio.weblogs.com/0112098/ --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: using the XBean XML configuration inside a regular Spring XML fileHow does our configurations work in a plain spring application
context? What features does it support? -dain On Aug 1, 2006, at 7:56 AM, James Strachan wrote: > I've been tidying up the XBean XML handling of Jencks - here's an > example... > > http://svn.codehaus.org/jencks/trunk/jencks/src/test/resources/org/ > jencks/xbean/xbean.xml > > If you specify the XSDs (as spring enables XML validation by default) > then you can use the XML file in a regular Spring ApplicationContext > (i.e. not requiring the xbean-derived ApplicationContexts) > > http://svn.codehaus.org/jencks/trunk/jencks/src/test/resources/org/ > jencks/xbean/xbean-validating.xml > > One nice side benefit of using full XSD validation is that your XML > IDE will be able to smart complete many of the elements and > attributes. > > -- > > James > ------- > http://radio.weblogs.com/0112098/ > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: using the XBean XML configuration inside a regular Spring XML fileOn 8/1/06, Dain Sundstrom <dain@...> wrote:
> How does our configurations work in a plain spring application > context? Guillaume added support for Spring 2 'namespace handlers' in xbean 2.5, so xbean will piggy back on the Spring hook for processing namespaces. (e.g. if you run the xbean-maven plugin you'll see a spring namespace handler file generated in META-INF/) > What features does it support? From testing it seems to support everything in xbean-spring I've tried so far. Guillaume rocks! :) -- James ------- http://radio.weblogs.com/0112098/ --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: using the XBean XML configuration inside a regular Spring XML fileHow does our namespace handler get added into spring? Is is auto
discovered or is there a some flag that must be set? -dain On Aug 1, 2006, at 11:00 AM, James Strachan wrote: > On 8/1/06, Dain Sundstrom <dain@...> wrote: >> How does our configurations work in a plain spring application >> context? > > Guillaume added support for Spring 2 'namespace handlers' in xbean > 2.5, so xbean will piggy back on the Spring hook for processing > namespaces. (e.g. if you run the xbean-maven plugin you'll see a > spring namespace handler file generated in META-INF/) > > >> What features does it support? > >> From testing it seems to support everything in xbean-spring I've >> tried so far. > Guillaume rocks! :) > > -- > > James > ------- > http://radio.weblogs.com/0112098/ > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: using the XBean XML configuration inside a regular Spring XML fileOn 8/1/06, Dain Sundstrom <dain@...> wrote:
> How does our namespace handler get added into spring? Is is auto > discovered or is there a some flag that must be set? Its auto-discovered using the META-INF/ trick -- James ------- http://radio.weblogs.com/0112098/ --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: using the XBean XML configuration inside a regular Spring XML fileWhen using spring 2.0, xbean defines a namespace handler that can
be used as is by spring. So you can use spring application contexts with xbean-enabled namespaces, as long as you include xbeans-spring in your classpath. The mechanism to auto discover the namespace extension is the standard spring one, using a META-INF/spring.handlers file autogenerated by the maven xbean plugin. However, some extended features to spring syntax won't be available, like qname handling, etc ... On 8/1/06, Dain Sundstrom <dain@...> wrote: How does our configurations work in a plain spring application -- Cheers, Guillaume Nodet |
| Free embeddable forum powered by Nabble | Forum Help |