Feature Requests item #584040, was opened at 2002-07-19 17:51 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=354754&aid=584040&group_id=4754
Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Geoffrey Longman (glongman) Assigned to: Howard Lewis Ship (hship) Summary: Add hooks for custom configuration Initial Comment: I really like the way Tapestry parses the spec files. In fact I've use them as a model for parsing my own configration files. Now if I had some neat way to integrate these files with my application.... Would it not be nice to be able to specifiy some application specific (but Tapestry independant) configuration object that's defined in my own flavour of xml? add a new tag to the application spec: <configuration name="myCustomConfig" file="/a/b/c/someCustomConfig.xml" parser-class="a.b.c.MyCustomConfigParser" root-tag="my-spec" method="parseMyCustomConfig/> where parser-class extends net.sf.tapestry.util.xml.AbstractDocumentParser and the name attribute is a key into a new Map in the application: Map configMap; public object getConfiguration(String name); and the method invoked in the Paser returns an instance of Object. This would allow one to psuedo-extend the application spec in a more flexible way than using the existing properties. Perhaps one could instrument the application spec such that If the implementer of the Custom config was smart you could even drill into configurations using property-paths: engine.specification.configs.myCustomConfig.someData If I ever get Spindle working again, I'll play with this and mail a patch you can peruse. Geoff ---------------------------------------------------------------------- >Comment By: Howard Lewis Ship (hship) Date: 2002-08-02 10:49 Message: Logged In: YES user_id=26816 This is a very interesting idea. Let's take this to the Wiki for further discussion. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=354754&aid=584040&group_id=4754 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Tapestry-developer mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/tapestry-developer
