Sep 27th, 2004, 02:19 PM
XInclude and XmlBeanFactory
Does XmlBeanFactory support any type of file inclusion, such as XInclude to allow the beans file to be broken out into multiple layers of bean xml files? Or, would it be necessary to manually use XInclude to generate a temporary file (or stream resource) and then use XmlBeanFactory to load that?
Basically, i'd like to load a beans.xml file from my applicatoin jar, and include other .xml files via this mechanism.
Sep 27th, 2004, 07:54 PM
Spring 1.1.1 added "import" element for XML beans definitions to allow for loading further bean definitions from relative paths.
You can also use ApplicationContext which allow using multiple XML files for beans definitions. You can mix files from the filesystem and the classpath.
Originally Posted by spring-beans.dtd