|
From: Archie C. <ar...@de...> - 2005-03-31 20:05:17
|
We've been using Spring for an application (it works great) and have
written some classes which may be more generally useful. I've attached
a few here for review; we'd be happy to contribute them to Spring if
there's interest.
They may need some tweaks (the copyright and package names at least)
which are no problem, just let me know.
This particular stuff arose from a need to perform XSLT transformations
within an application context at startup time. You use it like this:
<bean id="initScriptResource"
class="com.awarix.spring.beans.factory.XSLTFactoryBean">
<property name="input">
<value>classpath:com/awarix/reflink/initscr.xml</value>
</property>
<property name="transform">
<value>classpath:com/awarix/reflink/initscr.xsl</value>
</property>
<property name="parameters">
<map>
<entry key="param1"><value>42</value></entry>
</map>
</property>
</bean>
Cheers,
-Archie
__________________________________________________________________________
Archie Cobbs * CTO, Awarix * http://www.awarix.com
|