[Yanel-dev] BasicXMLResource goodness, e.g resolvers: profiting more from it

Guillaume Déflache guillaume.deflache at wyona.com
Thu May 27 14:54:03 CEST 2010


Hi!

While trying to move application code from my project's content repo 
(see 
http://lists.wyona.org/pipermail/yanel-development/2009-November/004154.html 
for full rationale) I stumbled on two resource-types that do not use the 
Yanel URI resolver to find files (XSLTs).
That prevented me from from moving the file to another 'app' repo, by 
using a URI like yanelrepo:REALM_ID:app:/path/to/file.xsl

The two I found are:
- 'contact-form': 
http://svn.wyona.com/repos/public/yanel/trunk/src/contributions/resources/contact-form/src/java/org/wyona/yanel/impl/resources/contactform/ContactResource.java
- 'navigation': 
http://svn.wyona.com/repos/public/yanel/trunk/src/resources/navigation/src/java/org/wyona/yanel/impl/resources/navigation/NavigationResource.java

The 1st I do not really need to change ATM but the second one is a bit 
more annoying, as the associated XSLT is more likely to change.


IMHO this should be fixed by making these 2 classes inherit from 
BasicXMLResource, with which they share a lot of duplicated code, and 
adapt the rest of the code, instead of duplicating more and more.

WDYT?


Cheers,
    Guillaume


More information about the Yanel-development mailing list