|
From: Seth L. <se...@eh...> - 2004-06-23 19:32:20
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, I've implemented a XsltBeanFactory, which takes a XML doc + XSLT stylesheet, and passes off the result to XmlBeanDefinitionReader. As a first proof of concept, I am trying to implement a XsltViewResolver. I've created an optimized version of views.xml and a stylesheet to convert it to the normal Beans DTD. I'd like to propose a few refactorings to XmlViewResolver, to make it easy to plug in different BeanFactories. - - Possibly create a BeanFactoryViewResolver, with a protected method createBeanFactory(). Subclasses can implement their own bean factory here. This method would be called by initBeanFactory(), which handles all the caching operations (currently handled by XmlViewResolver's initBeanFactory). - - Either make location protected or add a getLocation() method. This would be on the XmlViewResolver, which would now subclass BeanFactoryViewResolver. - - a XsltViewResolver can then subclass XmlViewResolver, being able to reuse the caching of the BeanFactory and the location property. This is minor stuff, but making a BeanFactoryViewResolver might prove useful as more and more BeanFactories are developed. Thanks, Seth -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3-nr1 (Windows XP) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFA2dq+KZsFSwtW+wIRAhFgAJ97RC44iEWx0C7ZYW08mRBHdt3DIwCfVBh7 3k9i1UwA32xxG7DyIjNwq5o= =/Lyl -----END PGP SIGNATURE----- |